diff options
author | Thom May <thom@chef.io> | 2018-02-20 11:04:07 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2018-02-20 11:04:07 +0000 |
commit | f277e20b2c088d26fe40ff99931c1df3bc1fa7a9 (patch) | |
tree | 2d2a4cc59052c246ecb0c842e23d698ece839b0f /lib/chef/chef_fs | |
parent | c4522e3359dc64e10575f20ebef08f81109aaa48 (diff) | |
download | chef-f277e20b2c088d26fe40ff99931c1df3bc1fa7a9.tar.gz |
fix chefstyletm/fix_chefstyle_again
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'lib/chef/chef_fs')
-rw-r--r-- | lib/chef/chef_fs/chef_fs_data_store.rb | 6 |
1 files changed, 3 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 59f15d5345..cdb793f808 100644 --- a/lib/chef/chef_fs/chef_fs_data_store.rb +++ b/lib/chef/chef_fs/chef_fs_data_store.rb @@ -309,10 +309,10 @@ class Chef elsif %w{cookbooks cookbook_artifacts}.include?(path[0]) && path.length == 3 with_entry([path[0]]) do |entry| cookbook_type = path[0] - cookbook_entry = entry.children.select { |child| + cookbook_entry = entry.children.select do |child| child.chef_object.full_name == "#{path[1]}-#{path[2]}" || - (child.chef_object.name.to_s == path[1] && child.chef_object.identifier == path[2]) - }[0] + (child.chef_object.name.to_s == path[1] && child.chef_object.identifier == path[2]) + end[0] raise ChefZero::DataStore::DataNotFoundError.new(path) if cookbook_entry.nil? result = nil begin |