diff options
Diffstat (limited to 'lib/chef/provider/ifconfig.rb')
-rw-r--r-- | lib/chef/provider/ifconfig.rb | 3 |
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 |