diff options
author | Ryan Cragun <ryan@chef.io> | 2019-07-29 10:51:42 -0600 |
---|---|---|
committer | Ryan Cragun <ryan@chef.io> | 2019-07-29 12:16:46 -0600 |
commit | aa7518ebb7a9aaf7b7beb2ed2ffe9d1684771fcc (patch) | |
tree | 6b37757841c0947c6441d13bc9b8f32c59474ae1 /lib/chef/provider/user | |
parent | b50f1df9800aaf830e317fb74aa7cfe764b2df94 (diff) | |
download | chef-aa7518ebb7a9aaf7b7beb2ed2ffe9d1684771fcc.tar.gz |
remove validation that is now in the resource
Signed-off-by: Ryan Cragun <ryan@chef.io>
Diffstat (limited to 'lib/chef/provider/user')
-rw-r--r-- | lib/chef/provider/user/mac.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/chef/provider/user/mac.rb b/lib/chef/provider/user/mac.rb index 196f52cc31..327660c359 100644 --- a/lib/chef/provider/user/mac.rb +++ b/lib/chef/provider/user/mac.rb @@ -60,17 +60,6 @@ class Chef a.failure_message(Chef::Exceptions::User, "Cannot find binary '#{bin}' on the system for #{new_resource}!") end end - - requirements.assert(:all_actions) do |a| - a.assertion do - if new_resource.property_is_set?(:salt) - new_resource.property_is_set?(:iterations) && new_resource.password =~ /^[[:xdigit:]]{256}$/ - else - true - end - end - a.failure_message(Chef::Exceptions::User, "Password must be a SALTED-SHA512-PBKDF2 shadow hash entropy when a shadow hash salt is given") - end end def load_current_resource |