summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-04-13 13:29:40 -0700
committerGitHub <noreply@github.com>2020-04-13 13:29:40 -0700
commit9bb865d5385cbddc229fec0d627e893d91b3e336 (patch)
tree429bbaa2e98c630564b2e1f61102416c59091340
parent4dd773a263ada8b55a05f489b4713de35526736b (diff)
parent415135d466070e8f99d0f94647e8b59ad23724de (diff)
downloadchef-9bb865d5385cbddc229fec0d627e893d91b3e336.tar.gz
Merge pull request #9655 from chef/plist_in_mac
Use the correct plist class in the mac user provider
-rw-r--r--lib/chef/provider/user/mac.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/user/mac.rb b/lib/chef/provider/user/mac.rb
index 104cf51abe..62575851e5 100644
--- a/lib/chef/provider/user/mac.rb
+++ b/lib/chef/provider/user/mac.rb
@@ -80,7 +80,7 @@ class Chef
admin_group_xml = run_dscl("read", "/Groups/admin")
return nil unless admin_group_xml && admin_group_xml != ""
- @admin_group_plist = ::Plist.new(::Plist.parse_xml(admin_group_xml))
+ @admin_group_plist = Plist.new(::Plist.parse_xml(admin_group_xml))
end
def reload_user_plist
@@ -95,7 +95,7 @@ class Chef
return nil if user_xml.nil? || user_xml == ""
- @user_plist = ::Plist.new(::Plist.parse_xml(user_xml))
+ @user_plist = Plist.new(::Plist.parse_xml(user_xml))
return unless user_plist[:shadow_hash]