diff options
Diffstat (limited to 'lib/chef/chef_fs/file_system/chef_server/cookbooks_dir.rb')
-rw-r--r-- | lib/chef/chef_fs/file_system/chef_server/cookbooks_dir.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/chef_fs/file_system/chef_server/cookbooks_dir.rb b/lib/chef/chef_fs/file_system/chef_server/cookbooks_dir.rb index 3c13bca3a3..52fc708552 100644 --- a/lib/chef/chef_fs/file_system/chef_server/cookbooks_dir.rb +++ b/lib/chef/chef_fs/file_system/chef_server/cookbooks_dir.rb @@ -73,6 +73,7 @@ class Chef def upload_cookbook(other, options) cookbook = other.chef_object if other.chef_object + raise Chef::Exceptions::MetadataNotFound.new(cookbook.root_paths[0], cookbook.name) unless cookbook.has_metadata_file? if cookbook begin |