summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook/remote_file_vendor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/cookbook/remote_file_vendor.rb')
-rw-r--r--lib/chef/cookbook/remote_file_vendor.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/cookbook/remote_file_vendor.rb b/lib/chef/cookbook/remote_file_vendor.rb
index 9ccb2ff46c..ebdb94ee54 100644
--- a/lib/chef/cookbook/remote_file_vendor.rb
+++ b/lib/chef/cookbook/remote_file_vendor.rb
@@ -44,6 +44,7 @@ class Chef
end
raise "No such segment #{segment} in cookbook #{@cookbook_name}" unless @manifest.files_for(segment)
+
found_manifest_record = @manifest.files_for(segment).find { |manifest_record| manifest_record[:path] == filename }
raise "No such file #{filename} in #{@cookbook_name}" unless found_manifest_record