summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-01-15 10:32:53 -0800
committerJohn Keiser <john@johnkeiser.com>2016-01-15 15:08:54 -0800
commit420acb37e6b7abf6d4c57b3f6af56c275de9a4d2 (patch)
treeb14d7add97b7a96bff0e6e9ebf85d4c1d5201e62
parent8fee68afb13b8ed00d57bf8cd9da84c333fd15a4 (diff)
downloadchef-420acb37e6b7abf6d4c57b3f6af56c275de9a4d2.tar.gz
Don't treat the cookbook as missing just because it has no versions--
that is for the higher level (chef server) to do
-rw-r--r--lib/chef/chef_fs/chef_fs_data_store.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/chef/chef_fs/chef_fs_data_store.rb b/lib/chef/chef_fs/chef_fs_data_store.rb
index 796c41ea92..4596408590 100644
--- a/lib/chef/chef_fs/chef_fs_data_store.rb
+++ b/lib/chef/chef_fs/chef_fs_data_store.rb
@@ -522,9 +522,6 @@ class Chef
select { |name, version| name == path[1] }.
map { |name, version| version }
end
- if result.empty?
- raise ChefZero::DataStore::DataNotFoundError.new(path)
- end
result
else
# list /cookbooks/name = <single version>