summaryrefslogtreecommitdiff
path: root/lib/chef/chef_fs/chef_fs_data_store.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2015-02-06 09:43:09 -0800
committerdanielsdeleo <dan@getchef.com>2015-02-11 10:52:49 -0800
commit6c9f246b04c23906dd5297d178a423c96bc7b369 (patch)
treeb12595c7931c0c9a8d9962ec9e6469f7483998aa /lib/chef/chef_fs/chef_fs_data_store.rb
parent677ca0d7e3366ea9b3b6a912c8c6c28d543e2046 (diff)
downloadchef-6c9f246b04c23906dd5297d178a423c96bc7b369.tar.gz
Temporarily implement deprecation warnings as errors
This is an intermediate step where we're cleaning up all internal code to convert cookbook version objects to JSON in the new way.
Diffstat (limited to 'lib/chef/chef_fs/chef_fs_data_store.rb')
-rw-r--r--lib/chef/chef_fs/chef_fs_data_store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/chef_fs_data_store.rb b/lib/chef/chef_fs/chef_fs_data_store.rb
index 9b4f7320b8..5f147720eb 100644
--- a/lib/chef/chef_fs/chef_fs_data_store.rb
+++ b/lib/chef/chef_fs/chef_fs_data_store.rb
@@ -147,7 +147,7 @@ class Chef
# get /cookbooks/NAME/version
result = nil
begin
- result = entry.chef_object.to_hash
+ result = Chef::CookbookManifest.new(entry.chef_object).to_hash
rescue Chef::ChefFS::FileSystem::NotFoundError => e
raise ChefZero::DataStore::DataNotFoundError.new(to_zero_path(e.entry), e)
end