summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-27 18:23:21 -0700
committerTim Smith <tsmith@chef.io>2018-10-27 18:23:21 -0700
commit401823a208ba11c6c32c68f0f94d8ac283bab452 (patch)
tree79ec5747ad6c0729f465bbf90f6bef84cb5bfe8c /lib/chef/resource
parent1eed59e7d0d3283b70e3560c1bb61f8f8110a97f (diff)
downloadchef-401823a208ba11c6c32c68f0f94d8ac283bab452.tar.gz
Remove logic that uniquely named the remote_file resource
This was probably added before use_inline_resources was a thing Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/dmg_package.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/resource/dmg_package.rb b/lib/chef/resource/dmg_package.rb
index 7f8ba16edc..0c8c5da128 100644
--- a/lib/chef/resource/dmg_package.rb
+++ b/lib/chef/resource/dmg_package.rb
@@ -94,8 +94,7 @@ class Chef
dmg_name = new_resource.dmg_name ? new_resource.dmg_name : new_resource.app
if new_resource.source
- declare_resource(:remote_file, "#{dmg_file} - #{new_resource.name}") do
- path dmg_file
+ remote_file dmg_file do
source new_resource.source
headers new_resource.headers if new_resource.headers
checksum new_resource.checksum if new_resource.checksum