summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLamont Granquist <lamont@opscode.com>2012-12-07 16:27:41 -0800
committerLamont Granquist <lamont@opscode.com>2012-12-19 15:56:11 -0800
commitde0ed7caab053d3a4d3a9deeef6ae53855bc7f63 (patch)
treef76ce5779b7c35527bb072a39523e141732f464b /lib
parent989200e56d601d65c2696a73ab7372b4efc8e2db (diff)
downloadchef-de0ed7caab053d3a4d3a9deeef6ae53855bc7f63.tar.gz
removing check for bad types
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/registry_key.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/chef/provider/registry_key.rb b/lib/chef/provider/registry_key.rb
index 1bbd165876..7c83ee11ae 100644
--- a/lib/chef/provider/registry_key.rb
+++ b/lib/chef/provider/registry_key.rb
@@ -55,9 +55,6 @@ class Chef
@current_resource.values(registry.get_values(@new_resource.key))
end
values_to_hash(@current_resource.values)
-
- @bad_type = []
- @new_resource.values.map {|val| @bad_type.push(val) if !registry.get_type_from_name(val[:type]) }.compact!
@current_resource
end
@@ -82,11 +79,6 @@ class Chef
a.assertion{ registry.key_exists?(@new_resource.key) }
a.whyrun("Key #{@new_resource.key} does not exist. Unless it would have been created before, attempt to modify its values would fail.")
end
- requirements.assert(:create, :create_if_missing, :delete, :delete_key) do |a|
- #If the type is anything different from the list of types specified fail
- a.assertion{ @bad_type.empty? }
- a.failure_message(Chef::Exceptions::Win32RegBadType, "Bad types for the following values #{@bad_vals}")
- end
requirements.assert(:create, :create_if_missing) do |a|
#If keys missing in the path and recursive == false
a.assertion{ !registry.keys_missing?(@current_resource.key) || @new_resource.recursive }