summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-02-16 11:44:39 +0000
committerThom May <thom@chef.io>2016-02-16 11:44:39 +0000
commit61906bae0a660759ed59339bb8ae49521c25c636 (patch)
tree989235b40e9405f343b1036dbc160252fdb40bdd
parent9a9e2b484ac3ac4c8497dd5e0cddff9c7c6c6dac (diff)
parent92d127b914c47f8dd8c9d7f455abdb44446aec2e (diff)
downloadchef-61906bae0a660759ed59339bb8ae49521c25c636.tar.gz
Merge branch 'petracvv-route_logic_fix'
-rw-r--r--lib/chef/provider/route.rb2
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