diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-12 11:48:02 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-12 11:48:02 -0700 |
commit | f398a43e00cd08033977ab8437416359cd5a7ea5 (patch) | |
tree | d516f79d7289bfb8b259fa6e9a4aac64814b28c6 /lib/chef/provider/deploy | |
parent | d188093dccf97428dcf625c57a996faada88a31b (diff) | |
download | chef-f398a43e00cd08033977ab8437416359cd5a7ea5.tar.gz |
remove some uses of from_json
fix some things that don't need create_additions at all and just
return standard ruby objects without json_class. convert to
JSONCompat#parse which doesn't do any json_class inflation.
Diffstat (limited to 'lib/chef/provider/deploy')
-rw-r--r-- | lib/chef/provider/deploy/revision.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/deploy/revision.rb b/lib/chef/provider/deploy/revision.rb index 89710088d1..ed65742154 100644 --- a/lib/chef/provider/deploy/revision.rb +++ b/lib/chef/provider/deploy/revision.rb @@ -90,7 +90,7 @@ class Chef def load_cache begin - Chef::JSONCompat.from_json(Chef::FileCache.load("revision-deploys/#{new_resource.name}")) + Chef::JSONCompat.parse(Chef::FileCache.load("revision-deploys/#{new_resource.name}")) rescue Chef::Exceptions::FileNotFound sorted_releases_from_filesystem end |