diff options
author | kaustubh-d <kausubh@clogeny.com> | 2013-07-22 10:28:36 -0700 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-07-23 10:36:15 -0700 |
commit | 8dc27f1776d684289a6f1863251502ac7d1c6853 (patch) | |
tree | df3a6ba77a7575e4c87f3bbebd33c4fbe1f7b643 /lib/chef/provider/ifconfig.rb | |
parent | 2e5cb819b475fec8286da272102e61ae795af02b (diff) | |
download | chef-8dc27f1776d684289a6f1863251502ac7d1c6853.tar.gz |
revert is_vip from ifconfig resource.
Diffstat (limited to 'lib/chef/provider/ifconfig.rb')
-rw-r--r-- | lib/chef/provider/ifconfig.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/ifconfig.rb b/lib/chef/provider/ifconfig.rb index 44d99e455d..3a354bb5c6 100644 --- a/lib/chef/provider/ifconfig.rb +++ b/lib/chef/provider/ifconfig.rb @@ -101,7 +101,7 @@ class Chef def action_add # check to see if load_current_resource found interface in ifconfig - if @current_resource.inet_addr.nil? || @new_resource.is_vip + unless @current_resource.inet_addr unless @new_resource.device == loopback_device command = add_command converge_by ("run #{command} to add #{@new_resource}") do @@ -119,7 +119,7 @@ class Chef def action_enable # check to see if load_current_resource found ifconfig # enables, but does not manage config files - if @current_resource.inet_addr.nil? || @new_resource.is_vip + unless @current_resource.inet_addr unless @new_resource.device == loopback_device command = enable_command converge_by ("run #{command} to enable #{@new_resource}") do |