summaryrefslogtreecommitdiff
path: root/lib/chef/node.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-08-09 10:05:47 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-08-09 10:05:47 -0700
commitb7a5d28ac34d4661bb8a4e2e92d25e023f60f987 (patch)
tree99fede241b3b91687a15e55a9d045885562c8056 /lib/chef/node.rb
parentadbb0fa85cc45b93ba91dc3019094b312cafb35c (diff)
downloadchef-b7a5d28ac34d4661bb8a4e2e92d25e023f60f987.tar.gz
Revert "remove #to_json Monkeytpatching"
This reverts commit adbb0fa85cc45b93ba91dc3019094b312cafb35c.
Diffstat (limited to 'lib/chef/node.rb')
-rw-r--r--lib/chef/node.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb
index e9c0d09751..17ec1d0f0a 100644
--- a/lib/chef/node.rb
+++ b/lib/chef/node.rb
@@ -181,6 +181,7 @@ class Chef
attributes.override
end
+
def override_attrs
attributes.override
end
@@ -415,7 +416,7 @@ class Chef
# Serialize this object as a hash
def to_json(*a)
- ::Chef::JSONCompat.to_json(for_json, *a)
+ for_json.to_json(*a)
end
def for_json