diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-10-02 23:40:05 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-10-02 23:40:05 -0700 |
commit | 5be8769c6748e22fa5b3df0a1132cea2cc00ed72 (patch) | |
tree | d8951be12218ecf16e61ea71fb9599cee942ba3c /lib/chef/recipe.rb | |
parent | c982ebfe0ce22884939c2d3419d7a51f4c271f49 (diff) | |
download | chef-5be8769c6748e22fa5b3df0a1132cea2cc00ed72.tar.gz |
Only eval the block if one was passed
Diffstat (limited to 'lib/chef/recipe.rb')
-rw-r--r-- | lib/chef/recipe.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/recipe.rb b/lib/chef/recipe.rb index d6b9afc474..d2224af5fd 100644 --- a/lib/chef/recipe.rb +++ b/lib/chef/recipe.rb @@ -81,7 +81,7 @@ class Chef # to. if @definitions.has_key?(method_symbol) new_def = @definitions[method_symbol].dup - new_def.instance_eval(&block) + new_def.instance_eval(&block) if 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] |