From 1c7b4629240c49e02c482da6de1a6a2cc574304e Mon Sep 17 00:00:00 2001 From: tyler-ball Date: Wed, 24 Sep 2014 09:18:47 -0700 Subject: Trying to eradicate all traces of the JSON gem from Chef --- lib/chef/cookbook_version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/cookbook_version.rb') diff --git a/lib/chef/cookbook_version.rb b/lib/chef/cookbook_version.rb index 40aaaf1191..95af94bdf7 100644 --- a/lib/chef/cookbook_version.rb +++ b/lib/chef/cookbook_version.rb @@ -479,7 +479,7 @@ class Chef cookbook_version.manifest = o # We don't need the following step when we decide to stop supporting deprecated operators in the metadata (e.g. <<, >>) - cookbook_version.manifest["metadata"] = Chef::JSONCompat.from_json(cookbook_version.metadata.to_json) + cookbook_version.manifest["metadata"] = Chef::JSONCompat.from_json(Chef::JSONCompat.to_json(cookbook_version.metadata)) cookbook_version.freeze_version if o["frozen?"] cookbook_version -- cgit v1.2.1