From 8661b14aae687bf585b1ecc74ea487e42ad17321 Mon Sep 17 00:00:00 2001 From: sakazuki Date: Fri, 10 Jan 2014 20:58:36 +0000 Subject: fix bug --- lib/chef/provider/ifconfig.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.1