summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-09-03 17:42:46 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-07 11:24:28 -0800
commit73ce2f5c996b52bcfa9e58dce3ec14f43b9a0ece (patch)
tree1b2f5bb3e90138efd19f24e04637c83135778f85
parent14c15b86f33ae44729bce9b0bae12b7afa3926a6 (diff)
downloadchef-73ce2f5c996b52bcfa9e58dce3ec14f43b9a0ece.tar.gz
do not print the back ref to the node object
-rw-r--r--lib/chef/node/attribute_trait/path_tracking.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/node/attribute_trait/path_tracking.rb b/lib/chef/node/attribute_trait/path_tracking.rb
index 886e752059..97bf0307d3 100644
--- a/lib/chef/node/attribute_trait/path_tracking.rb
+++ b/lib/chef/node/attribute_trait/path_tracking.rb
@@ -29,6 +29,10 @@ class Chef
__attribute_changed(__precedence, __next_path, value)
end
+ def pretty_print_instance_variables
+ instance_variables.sort - [ :@__node ]
+ end
+
private
def __attribute_changed(*args)