summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-29 11:16:45 -0700
committerTim Smith <tsmith@chef.io>2018-03-29 11:16:45 -0700
commit03e17bed7820ec769a55ed09a1ae19bde6b2466e (patch)
treec88bf5d698831f24c52e5fef6dd249ad7818d5db
parentf8a74d90c4c399e9ed90c5beaed6e4e72b36a570 (diff)
downloadchef-03e17bed7820ec769a55ed09a1ae19bde6b2466e.tar.gz
Fix method missing error in dmg_package
I'll get this fixed in the cookbook as well. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/dmg_package.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/dmg_package.rb b/lib/chef/resource/dmg_package.rb
index f825db804e..4d95532d37 100644
--- a/lib/chef/resource/dmg_package.rb
+++ b/lib/chef/resource/dmg_package.rb
@@ -149,7 +149,7 @@ class Chef
def dmg_file
@dmg_file ||= begin
if new_resource.file.nil?
- "#{Chef::Config[:file_cache_path]}/#{dmg_name}.dmg"
+ "#{Chef::Config[:file_cache_path]}/#{new_resource.dmg_name}.dmg"
else
new_resource.file
end