summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-11-25 07:57:15 -0800
committerTim Smith <tsmith84@gmail.com>2020-11-25 07:57:15 -0800
commitca13651a914cb0c5d23166036eb2f65888d92002 (patch)
tree0d6c26570c5bd9a8d6c2c15640fe771eb5180af7
parent6b65c094559dcb7d3d4eff84e56df8efd761c429 (diff)
downloadchef-ca13651a914cb0c5d23166036eb2f65888d92002.tar.gz
Resolve NameError running mac_user resource
The m variable is never defined. This should be attr. The variable was m before, but https://github.com/chef/chef/pull/10656 refactored to attr. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/user/mac.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/user/mac.rb b/lib/chef/provider/user/mac.rb
index aef831907a..5604244f7f 100644
--- a/lib/chef/provider/user/mac.rb
+++ b/lib/chef/provider/user/mac.rb
@@ -223,7 +223,7 @@ class Chef
def compare_user
@change_desc = []
%i{comment shell uid gid salt password admin secure_token hidden}.each do |attr|
- if diverged?(m)
+ if diverged?(attr)
desc = "Update #{attr}"
unless %i{password gid secure_token hidden}.include?(attr)
desc << " from #{current_resource.send(attr)} to #{new_resource.send(attr)}"