diff options
Diffstat (limited to 'lib/chef/resource_collection.rb')
-rw-r--r-- | lib/chef/resource_collection.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/resource_collection.rb b/lib/chef/resource_collection.rb index 362781ea0e..e53a759460 100644 --- a/lib/chef/resource_collection.rb +++ b/lib/chef/resource_collection.rb @@ -118,10 +118,11 @@ class Chef self.instance_variables.each do |iv| instance_vars[iv] = self.instance_variable_get(iv) end - { + results = { 'json_class' => self.class.name, 'instance_vars' => instance_vars - }.to_json(*a) + } + results.to_json(*a) end def self.json_create(o) |