diff options
author | danielsdeleo <dan@opscode.com> | 2013-02-11 15:45:15 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-02-11 15:45:15 -0800 |
commit | 07bc5331feac1ceaf0627aaf2c52b213f39be45a (patch) | |
tree | d358240b7a89999198aef32ffeeebe305da01eaf /lib/chef/cookbook_version.rb | |
parent | 3f12a8561bd10817db4fc2a4da26d071294a551e (diff) | |
download | chef-07bc5331feac1ceaf0627aaf2c52b213f39be45a.tar.gz |
switch from JSON.parse to JSONCompat
Diffstat (limited to 'lib/chef/cookbook_version.rb')
-rw-r--r-- | lib/chef/cookbook_version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook_version.rb b/lib/chef/cookbook_version.rb index 580a64ffbe..a70c892e1b 100644 --- a/lib/chef/cookbook_version.rb +++ b/lib/chef/cookbook_version.rb @@ -565,7 +565,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"] = JSON.parse(cookbook_version.metadata.to_json) + cookbook_version.manifest["metadata"] = Chef::JSONCompat.from_json(cookbook_version.metadata.to_json) cookbook_version.freeze_version if o["frozen?"] cookbook_version |