summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakazuki <sakazuki@gmail.com>2014-01-10 20:58:36 +0000
committerLamont Granquist <lamont@scriptkiddie.org>2014-09-10 14:49:29 -0700
commit8661b14aae687bf585b1ecc74ea487e42ad17321 (patch)
tree25108216d0ff1809b17ffd40c5d47ca6ea90b0b9
parentced0fa862371230a936ff27d3a552ab39cd2f17a (diff)
downloadchef-8661b14aae687bf585b1ecc74ea487e42ad17321.tar.gz
fix bug
-rw-r--r--lib/chef/provider/ifconfig.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/provider/ifconfig.rb b/lib/chef/provider/ifconfig.rb
index b36e997258..4e1f639402 100644
--- a/lib/chef/provider/ifconfig.rb
+++ b/lib/chef/provider/ifconfig.rb
@@ -171,7 +171,6 @@ class Chef
def resource_for_config(path)
config = Chef::Resource::File.new(path, run_context)
- config.cookbook_name = @new_resource.cookbook || @new_resource.cookbook_name
config
end
@@ -180,7 +179,7 @@ class Chef
b = binding
template = ::ERB.new(@config_template)
config = resource_for_config(@config_path)
- config.content template.result(b)
+ config.content(template.result(b))
config.run_action(:create)
@new_resource.updated_by_last_action(true) if config.updated?
end