summaryrefslogtreecommitdiff
path: root/lib/chef/provider/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/user.rb')
-rw-r--r--lib/chef/provider/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/user.rb b/lib/chef/provider/user.rb
index da739e41ec..38fe233d76 100644
--- a/lib/chef/provider/user.rb
+++ b/lib/chef/provider/user.rb
@@ -109,7 +109,7 @@ class Chef
def compare_user
return true if !new_resource.home.nil? && Pathname.new(new_resource.home).cleanpath != Pathname.new(current_resource.home).cleanpath
- [ :comment, :shell, :password, :uid, :gid ].each do |user_attrib|
+ %i{comment shell password uid gid}.each do |user_attrib|
return true if !new_resource.send(user_attrib).nil? && new_resource.send(user_attrib).to_s != current_resource.send(user_attrib).to_s
end