diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-04-13 13:22:49 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-04-13 13:22:49 -0700 |
commit | 415135d466070e8f99d0f94647e8b59ad23724de (patch) | |
tree | 429bbaa2e98c630564b2e1f61102416c59091340 /lib/chef/provider/user | |
parent | 4dd773a263ada8b55a05f489b4713de35526736b (diff) | |
download | chef-415135d466070e8f99d0f94647e8b59ad23724de.tar.gz |
Use the correct plist class in the mac user provider
This is actually a subclass of the mac user provider and not the Plist gem. This is a super confusing name btw. Plist passed Plist, but it's a different Plist.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/user')
-rw-r--r-- | lib/chef/provider/user/mac.rb | 4 |
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] |