summaryrefslogtreecommitdiff
path: root/lib/chef/provider/ifconfig.rb
diff options
context:
space:
mode:
authorsakazuki <sakazuki@gmail.com>2014-01-19 07:49:56 +0900
committerLamont Granquist <lamont@scriptkiddie.org>2014-09-10 14:49:30 -0700
commitd94700b7247c8a9c8921cea7d01f68e51f69085e (patch)
tree0b2bb8938b5d057152da5f4c06d676cb673989e9 /lib/chef/provider/ifconfig.rb
parentc1f9cbd01c7c0b57ebfa7b90f34acad58f34f724 (diff)
downloadchef-d94700b7247c8a9c8921cea7d01f68e51f69085e.tar.gz
move (generate|delete)_config out of the process of running-config
Diffstat (limited to 'lib/chef/provider/ifconfig.rb')
-rw-r--r--lib/chef/provider/ifconfig.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/ifconfig.rb b/lib/chef/provider/ifconfig.rb
index c56530369b..ac52100b56 100644
--- a/lib/chef/provider/ifconfig.rb
+++ b/lib/chef/provider/ifconfig.rb
@@ -110,11 +110,11 @@ class Chef
:command => command
)
Chef::Log.info("#{@new_resource} added")
- # Write out the config files
- generate_config
end
end
end
+ # Write out the config files
+ generate_config
end
def action_enable
@@ -141,12 +141,12 @@ class Chef
run_command(
:command => command
)
- delete_config
Chef::Log.info("#{@new_resource} deleted")
end
else
Chef::Log.debug("#{@new_resource} does not exist - nothing to do")
end
+ delete_config
end
def action_disable