diff options
Diffstat (limited to 'chef/lib/chef/node/attribute.rb')
-rw-r--r-- | chef/lib/chef/node/attribute.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/node/attribute.rb b/chef/lib/chef/node/attribute.rb index ccd87a1d77..c4556bfeae 100644 --- a/chef/lib/chef/node/attribute.rb +++ b/chef/lib/chef/node/attribute.rb @@ -425,7 +425,7 @@ class Chef self[symbol] = Mash.new self[symbol] else - raise ArgumentError, "Attribute #{symbol} is not defined!" unless auto_vivifiy_on_read + raise NoMethodError, "Undefined method or attribute `#{symbol}' on `node'" end elsif symbol.to_s =~ /=$/ key_to_set = symbol.to_s[/^(.+)=$/, 1] || symbol |