diff options
author | Xabier de Zuazo <xabier@zuazo.org> | 2012-12-19 17:21:48 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-05-24 11:27:59 -0700 |
commit | 1e87d10f41362bf133cc253775cc724527651da0 (patch) | |
tree | ae0384e560ad0ad8729aedec5c3a47305c4b5a31 /lib/chef/provider/route.rb | |
parent | 0449590702b657b85d6262d87d8fa31342d6a4fa (diff) | |
download | chef-1e87d10f41362bf133cc253775cc724527651da0.tar.gz |
[CHEF-3332] removed not needed "action" argument from #generate_config method
Diffstat (limited to 'lib/chef/provider/route.rb')
-rw-r--r-- | lib/chef/provider/route.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/route.rb b/lib/chef/provider/route.rb index d2db99fe42..208a4f4139 100644 --- a/lib/chef/provider/route.rb +++ b/lib/chef/provider/route.rb @@ -139,7 +139,7 @@ class Chef::Provider::Route < Chef::Provider end #for now we always write the file (ugly but its what it is) - generate_config(:add) + generate_config end def action_delete @@ -154,10 +154,10 @@ class Chef::Provider::Route < Chef::Provider end #for now we always write the file (ugly but its what it is) - generate_config(:delete) + generate_config end - def generate_config(action) + def generate_config conf = Hash.new case node[:platform] when "centos", "redhat", "fedora" @@ -172,7 +172,7 @@ class Chef::Provider::Route < Chef::Provider end conf[dev] = String.new if conf[dev].nil? - case action + case @action when :add conf[dev] << config_file_contents(:add, :target => resource.target, :netmask => resource.netmask, :gateway => resource.gateway) when :delete |