summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-18 16:01:00 +0000
committerThom May <thom@chef.io>2016-01-18 16:01:00 +0000
commitc81c62bbecc2df2522f148d8f0a002f7114db981 (patch)
tree303c173811f0ad720047ff7405c270d144605231
parent832505aaa7e029ad76287c1d37c1ebc146869dd4 (diff)
downloadchef-c81c62bbecc2df2522f148d8f0a002f7114db981.tar.gz
tidy up cookbook_loader
-rw-r--r--lib/chef/chef_fs/file_system/chef_server/cookbook_dir.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/file_system/chef_server/cookbook_dir.rb b/lib/chef/chef_fs/file_system/chef_server/cookbook_dir.rb
index 18bf748d87..fb3c185145 100644
--- a/lib/chef/chef_fs/file_system/chef_server/cookbook_dir.rb
+++ b/lib/chef/chef_fs/file_system/chef_server/cookbook_dir.rb
@@ -188,7 +188,7 @@ class Chef
old_retry_count = Chef::Config[:http_retry_count]
begin
Chef::Config[:http_retry_count] = 0
- @chef_object ||= Chef::CookbookVersion.json_create(root.get_json(api_path))
+ @chef_object ||= Chef::CookbookVersion.from_hash(root.get_json(api_path))
ensure
Chef::Config[:http_retry_count] = old_retry_count
end