summaryrefslogtreecommitdiff
path: root/lib/chef/provider/user
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-02-19 10:49:43 -0800
committerTim Smith <tsmith@chef.io>2019-02-19 10:49:43 -0800
commite11cadae4afad52812a9b1e290a133c8dd915e82 (patch)
tree38064711109891ca57ead25de05ebf6a9eefe011 /lib/chef/provider/user
parent4e198944ca099eeeceabfa5672d74ac94a9bbb90 (diff)
downloadchef-e11cadae4afad52812a9b1e290a133c8dd915e82.tar.gz
Load the correct resource in dscl provideruser_cleanup
This worked until I moved the interations property into the dscl_user resource directly. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/user')
-rw-r--r--lib/chef/provider/user/dscl.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/provider/user/dscl.rb b/lib/chef/provider/user/dscl.rb
index 4da6465bd6..12be6ffb7e 100644
--- a/lib/chef/provider/user/dscl.rb
+++ b/lib/chef/provider/user/dscl.rb
@@ -18,6 +18,7 @@
require "chef/mixin/shell_out"
require "chef/provider/user"
+require "chef/resource/user/dscl_user"
require "openssl"
require "plist"
require "chef/util/path_helper"
@@ -99,7 +100,7 @@ in 'password', with the associated 'salt' and 'iterations'.")
end
def load_current_resource
- @current_resource = Chef::Resource::User.new(new_resource.username)
+ @current_resource = Chef::Resource::User::DsclUser.new(new_resource.username)
current_resource.username(new_resource.username)
@user_info = read_user_info