Skip to content

Commit

Permalink
Save user after creating before trying to read/set other properties. F…
Browse files Browse the repository at this point in the history
…ixes ansible#1241
  • Loading branch information
cchurch authored and mattclay committed Dec 8, 2016
1 parent c88feaf commit d8f5a34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ansible/modules/windows/win_user.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit d8f5a34

Please sign in to comment.