diff options
author | Lamont Granquist <lamont@opscode.com> | 2021-03-26 14:20:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 14:20:44 -0700 |
commit | 65f914020686a666bd7e5ac42a5c532530a4a5e7 (patch) | |
tree | 24dc407673b1a858f95443caeb4942d0dc00fe59 | |
parent | 48b410f1949692132b42622d3f9162533dab19b2 (diff) | |
parent | 7b04a288d1d30f2b0ebd09d45cb139d1056da6be (diff) | |
download | chef-65f914020686a666bd7e5ac42a5c532530a4a5e7.tar.gz |
Merge pull request #11233 from jaymzh/windows_user_password
Fix windows_user password idempotency
-rw-r--r-- | lib/chef/provider/user/windows.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/user/windows.rb b/lib/chef/provider/user/windows.rb index 32b2c35264..8cf4ea475b 100644 --- a/lib/chef/provider/user/windows.rb +++ b/lib/chef/provider/user/windows.rb @@ -62,7 +62,7 @@ class Chef # <false>:: If the users are identical def compare_user @change_desc = [] - unless @net_user.validate_credentials(new_resource.password) + if new_resource.password && !@net_user.validate_credentials(new_resource.password) @change_desc << "update password" end |