From 2b35272f744c1649b03561d627feec7135f00ad9 Mon Sep 17 00:00:00 2001 From: Baptiste Courtois Date: Wed, 20 Jul 2016 18:22:39 +0200 Subject: Forward package cookbook_name to underlying remote_file --- lib/chef/provider/package/windows.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/chef/provider/package/windows.rb') diff --git a/lib/chef/provider/package/windows.rb b/lib/chef/provider/package/windows.rb index a5f3ff7191..753d3c279e 100644 --- a/lib/chef/provider/package/windows.rb +++ b/lib/chef/provider/package/windows.rb @@ -201,6 +201,7 @@ class Chef def resource_for_provider @resource_for_provider = Chef::Resource::WindowsPackage.new(new_resource.name).tap do |r| r.source(Chef::Util::PathHelper.validate_path(source_location)) unless source_location.nil? + r.cookbook_name = new_resource.cookbook_name r.version(new_resource.version) r.timeout(new_resource.timeout) r.returns(new_resource.returns) @@ -216,6 +217,7 @@ class Chef def source_resource @source_resource ||= Chef::Resource::RemoteFile.new(default_download_cache_path, run_context).tap do |r| r.source(new_resource.source) + r.cookbook_name = new_resource.cookbook_name r.checksum(new_resource.checksum) r.backup(false) -- cgit v1.2.1