summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Cragun <ryan@chef.io>2019-07-29 10:51:42 -0600
committerRyan Cragun <ryan@chef.io>2019-07-29 12:16:46 -0600
commitaa7518ebb7a9aaf7b7beb2ed2ffe9d1684771fcc (patch)
tree6b37757841c0947c6441d13bc9b8f32c59474ae1
parentb50f1df9800aaf830e317fb74aa7cfe764b2df94 (diff)
downloadchef-aa7518ebb7a9aaf7b7beb2ed2ffe9d1684771fcc.tar.gz
remove validation that is now in the resource
Signed-off-by: Ryan Cragun <ryan@chef.io>
-rw-r--r--lib/chef/provider/user/mac.rb11
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