summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-01-15 15:30:33 -0800
committerJohn Keiser <john@johnkeiser.com>2016-01-15 15:30:33 -0800
commit24b576b9f39bd97b239861ec208049e586b88294 (patch)
treee7df83b5b773a72474bb795562948e066f8da32f
parentbde41cf03f898e459b3ed883cbad9068355bf84f (diff)
downloadchef-jk/cookbook-artifacts-local-mode.tar.gz
No cookbook versions is missing cookbookjk/cookbook-artifacts-local-mode
-rw-r--r--lib/chef/chef_fs/chef_fs_data_store.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/chef_fs/chef_fs_data_store.rb b/lib/chef/chef_fs/chef_fs_data_store.rb
index 9070e69633..37f30dde45 100644
--- a/lib/chef/chef_fs/chef_fs_data_store.rb
+++ b/lib/chef/chef_fs/chef_fs_data_store.rb
@@ -524,6 +524,9 @@ 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>