summaryrefslogtreecommitdiff
path: root/lib/chef/recipe.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/recipe.rb')
-rw-r--r--lib/chef/recipe.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/recipe.rb b/lib/chef/recipe.rb
index af1cbd2d77..d7d1435eb4 100644
--- a/lib/chef/recipe.rb
+++ b/lib/chef/recipe.rb
@@ -81,6 +81,7 @@ class Chef
new_def.instance_eval(&block)
new_recipe = Chef::Recipe.new(@cookbook_name, @recipe_name, @node, @collection, @definitions, @cookbook_loader)
new_recipe.params = new_def.params
+ new_recipe.params[:name] = args[0]
new_recipe.instance_eval(&new_def.recipe)
else
method_name = method_symbol.to_s