summaryrefslogtreecommitdiff
path: root/lib/chef/node
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2015-02-11 18:20:44 -0800
committertyler-ball <tyleraball@gmail.com>2015-02-11 18:20:44 -0800
commit0af05294137e652979db5effa0cb50d512a2d3a9 (patch)
treececaeda0e590d4bb38a61e0a5bdebf51d37fbf75 /lib/chef/node
parent3743da85e48f2fc57e48ed62c014c1070bb69f38 (diff)
downloadchef-0af05294137e652979db5effa0cb50d512a2d3a9.tar.gz
Completing tests for https://github.com/chef/chef/pull/2310, fixes https://github.com/chef/chef/issues/1562tball/complete-2310
Diffstat (limited to 'lib/chef/node')
-rw-r--r--lib/chef/node/attribute.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/node/attribute.rb b/lib/chef/node/attribute.rb
index 9d8738f637..45f2ef01ee 100644
--- a/lib/chef/node/attribute.rb
+++ b/lib/chef/node/attribute.rb
@@ -475,6 +475,10 @@ class Chef
end
end
+ def to_s
+ merged_attributes.to_s
+ end
+
def inspect
"#<#{self.class} " << (COMPONENTS + [:@merged_attributes, :@properties]).map{|iv|
"#{iv}=#{instance_variable_get(iv).inspect}"