mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 03:42:45 +00:00
Save user after creating before trying to read/set other properties. Fixes #1241
This commit is contained in:
@@ -146,6 +146,7 @@ If ($state -eq 'present') {
|
||||
If ($password -ne $null) {
|
||||
$user_obj.SetPassword($password)
|
||||
}
|
||||
$user_obj.SetInfo()
|
||||
$result.changed = $true
|
||||
}
|
||||
ElseIf (($password -ne $null) -and ($update_password -eq 'always')) {
|
||||
|
||||
Reference in New Issue
Block a user