summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/resource/cookbook_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/cookbook_file.rb b/lib/chef/resource/cookbook_file.rb
index 497b72aac7..f58ad786fc 100644
--- a/lib/chef/resource/cookbook_file.rb
+++ b/lib/chef/resource/cookbook_file.rb
@@ -29,7 +29,7 @@ class Chef
resource_name :cookbook_file
- property :source, [ String, Array ], default: lazy { |r| ::File.basename(r.name) }
+ property :source, [ String, Array ], default: lazy { ::File.basename(name) }
property :cookbook, String
default_action :create