summaryrefslogtreecommitdiff
path: root/lib/chef/provider/deploy
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-08-12 11:48:02 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-08-12 11:48:02 -0700
commitf398a43e00cd08033977ab8437416359cd5a7ea5 (patch)
treed516f79d7289bfb8b259fa6e9a4aac64814b28c6 /lib/chef/provider/deploy
parentd188093dccf97428dcf625c57a996faada88a31b (diff)
downloadchef-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.rb2
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