summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/resource/registry_key.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/resource/registry_key.rb b/lib/chef/resource/registry_key.rb
index dc9fc1496c..9c36753a99 100644
--- a/lib/chef/resource/registry_key.rb
+++ b/lib/chef/resource/registry_key.rb
@@ -61,6 +61,8 @@ class Chef
v.each_key do |key|
raise ArgumentError, "Bad key #{key} in RegistryKey values hash" unless [:name,:type,:data].include?(key)
end
+ raise ArgumentError, "Type of name => #{v[:name]} should be string" unless v[:name].is_a?(String)
+ raise Argument Error "Type of type => #{v[:name]} should be symbol" unless v[:type].is_a?(Symbol)
end
elsif self.instance_variable_defined?(:@values) == true
@values