diff options
author | Gene Wood <gene_wood@cementhorizon.com> | 2013-08-23 15:13:03 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-10-04 09:52:10 -0700 |
commit | f291d6d605c95e3c04b51e4ceb17dcf81f1ced74 (patch) | |
tree | 1b49ca02190a53d3be31d0765733a27bd4666458 /lib/chef/provider | |
parent | 9e954aeb26e83bb77a645c76a184df5a265161d6 (diff) | |
download | chef-f291d6d605c95e3c04b51e4ceb17dcf81f1ced74.tar.gz |
CHEF-4482 : change user attribute comparison to string compares
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/user/useradd.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/user/useradd.rb b/lib/chef/provider/user/useradd.rb index 41455007dc..1789a4e5ff 100644 --- a/lib/chef/provider/user/useradd.rb +++ b/lib/chef/provider/user/useradd.rb @@ -124,7 +124,7 @@ class Chef end def update_options(field, option, opts) - if @current_resource.send(field) != new_resource.send(field) + if @current_resource.send(field).to_s != new_resource.send(field).to_s if new_resource.send(field) Chef::Log.debug("#{new_resource} setting #{field} to #{new_resource.send(field)}") opts << option << new_resource.send(field).to_s |