diff options
author | Thom May <thom@chef.io> | 2016-02-16 11:44:39 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-02-16 11:44:39 +0000 |
commit | 61906bae0a660759ed59339bb8ae49521c25c636 (patch) | |
tree | 989235b40e9405f343b1036dbc160252fdb40bdd | |
parent | 9a9e2b484ac3ac4c8497dd5e0cddff9c7c6c6dac (diff) | |
parent | 92d127b914c47f8dd8c9d7f455abdb44446aec2e (diff) | |
download | chef-61906bae0a660759ed59339bb8ae49521c25c636.tar.gz |
Merge branch 'petracvv-route_logic_fix'
-rw-r--r-- | lib/chef/provider/route.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/route.rb b/lib/chef/provider/route.rb index 3dd0e33cd1..64c89aac6d 100644 --- a/lib/chef/provider/route.rb +++ b/lib/chef/provider/route.rb @@ -176,7 +176,7 @@ class Chef::Provider::Route < Chef::Provider conf[dev] = String.new if conf[dev].nil? case @action when :add - conf[dev] << config_file_contents(:add, :target => resource.target, :netmask => resource.netmask, :gateway => resource.gateway) + conf[dev] << config_file_contents(:add, :target => resource.target, :netmask => resource.netmask, :gateway => resource.gateway) if resource.action == [:add] when :delete # need to do this for the case when the last route on an int # is removed |