diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-09 10:05:47 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-09 10:05:47 -0700 |
commit | b7a5d28ac34d4661bb8a4e2e92d25e023f60f987 (patch) | |
tree | 99fede241b3b91687a15e55a9d045885562c8056 /lib/chef/exceptions.rb | |
parent | adbb0fa85cc45b93ba91dc3019094b312cafb35c (diff) | |
download | chef-b7a5d28ac34d4661bb8a4e2e92d25e023f60f987.tar.gz |
Revert "remove #to_json Monkeytpatching"
This reverts commit adbb0fa85cc45b93ba91dc3019094b312cafb35c.
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r-- | lib/chef/exceptions.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb index 9f4e1edd66..8c1a285095 100644 --- a/lib/chef/exceptions.rb +++ b/lib/chef/exceptions.rb @@ -195,6 +195,7 @@ class Chef end end + end # Exception class for collecting multiple failures. Used when running # delayed notifications so that chef can process each delayed @@ -262,7 +263,7 @@ class Chef "non_existent_cookbooks" => non_existent_cookbooks, "cookbooks_with_no_versions" => cookbooks_with_no_matching_versions } - ::Chef::JSONCompat.to_json(result, *a) + result.to_json(*a) end end @@ -297,7 +298,7 @@ class Chef "non_existent_cookbooks" => non_existent_cookbooks, "most_constrained_cookbooks" => most_constrained_cookbooks } - ::Chef::JSONCompat.to_json(result, *a) + result.to_json(*a) end end |