diff options
author | John Keiser <john@johnkeiser.com> | 2016-01-15 15:30:33 -0800 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2016-01-15 15:30:33 -0800 |
commit | 24b576b9f39bd97b239861ec208049e586b88294 (patch) | |
tree | e7df83b5b773a72474bb795562948e066f8da32f /lib/chef | |
parent | bde41cf03f898e459b3ed883cbad9068355bf84f (diff) | |
download | chef-jk/cookbook-artifacts-local-mode.tar.gz |
No cookbook versions is missing cookbookjk/cookbook-artifacts-local-mode
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/chef_fs/chef_fs_data_store.rb | 3 |
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> |