summaryrefslogtreecommitdiff
path: root/lib/chef/node
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-07-12 14:52:19 -0500
committerGitHub <noreply@github.com>2016-07-12 14:52:19 -0500
commite5422e7a0073b5923fb12b270eb0cb907e91762f (patch)
treecfd9d1f48d6f87d3b8022208ecb8034b5e095b83 /lib/chef/node
parent77eb1c2dbb024ab93151f627af7f702474008259 (diff)
parent867a2ab48d5952261a9b1efea0f5f5dd331d4a97 (diff)
downloadchef-e5422e7a0073b5923fb12b270eb0cb907e91762f.tar.gz
Merge pull request #5103 from chef/lcg/fix-5012
add back method_missing support to set_unless
Diffstat (limited to 'lib/chef/node')
-rw-r--r--lib/chef/node/attribute.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/node/attribute.rb b/lib/chef/node/attribute.rb
index 09c78c6de6..f5fe89251d 100644
--- a/lib/chef/node/attribute.rb
+++ b/lib/chef/node/attribute.rb
@@ -517,14 +517,14 @@ class Chef
if symbol == :to_ary
merged_attributes.send(symbol, *args)
elsif args.empty?
- Chef.log_deprecation %q{"method access to node attributes (node.foo.bar) is deprecated and will be removed in Chef 13, please use bracket syntax (node["foo"]["bar"])}
+ Chef.log_deprecation %q{method access to node attributes (node.foo.bar) is deprecated and will be removed in Chef 13, please use bracket syntax (node["foo"]["bar"])}
if key?(symbol)
self[symbol]
else
raise NoMethodError, "Undefined method or attribute `#{symbol}' on `node'"
end
elsif symbol.to_s =~ /=$/
- Chef.log_deprecation %q{"method setting of node attributes (node.foo="bar") is deprecated and will be removed in Chef 13, please use bracket syntax (node["foo"]="bar")}
+ Chef.log_deprecation %q{method setting of node attributes (node.foo="bar") is deprecated and will be removed in Chef 13, please use bracket syntax (node["foo"]="bar")}
key_to_set = symbol.to_s[/^(.+)=$/, 1]
self[key_to_set] = (args.length == 1 ? args[0] : args)
else