diff options
author | John Keiser <john@johnkeiser.com> | 2015-07-22 09:55:26 -0600 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-07-27 09:38:25 -0600 |
commit | b2eb45c854f41dc9369968b56f94eae37ed9c30c (patch) | |
tree | 79af63555e7d6ef00ca6ee73f235e3cb6ddfe8c5 /lib | |
parent | 9b957381e30423c32a52e3b9bb6ba2a6b0a09b64 (diff) | |
download | chef-b2eb45c854f41dc9369968b56f94eae37ed9c30c.tar.gz |
Don't set keys unless you must (for easier debugging)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/property.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/property.rb b/lib/chef/property.rb index 408090d37b..6579eb06a8 100644 --- a/lib/chef/property.rb +++ b/lib/chef/property.rb @@ -86,7 +86,7 @@ class Chef # def initialize(**options) options.each { |k,v| options[k.to_sym] = v if k.is_a?(String) } - options[:name_property] = options.delete(:name_attribute) unless options.has_key?(:name_property) + options[:name_property] = options.delete(:name_attribute) if options.has_key?(:name_attribute) && !options.has_key?(:name_property) @options = options if options.has_key?(:default) |