Save user after creating before trying to read/set other properties. Fixes #1241

This commit is contained in:
Chris Church 2015-07-22 03:14:20 -04:00 committed by Matt Clay
parent c88feaff7e
commit d8f5a34d85

View file

@ -146,6 +146,7 @@ If ($state -eq 'present') {
If ($password -ne $null) { If ($password -ne $null) {
$user_obj.SetPassword($password) $user_obj.SetPassword($password)
} }
$user_obj.SetInfo()
$result.changed = $true $result.changed = $true
} }
ElseIf (($password -ne $null) -and ($update_password -eq 'always')) { ElseIf (($password -ne $null) -and ($update_password -eq 'always')) {