summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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