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

reviewable/pr18780/r1
Chris Church 9 years ago
parent a6866be882
commit 313381981e

@ -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')) {

Loading…
Cancel
Save