summaryrefslogtreecommitdiff
path: root/lib/chef/provider/ifconfig.rb
diff options
context:
space:
mode:
authorkaustubh-d <kausubh@clogeny.com>2013-07-22 10:28:36 -0700
committeradamedx <adamed@opscode.com>2013-07-23 10:36:15 -0700
commit8dc27f1776d684289a6f1863251502ac7d1c6853 (patch)
treedf3a6ba77a7575e4c87f3bbebd33c4fbe1f7b643 /lib/chef/provider/ifconfig.rb
parent2e5cb819b475fec8286da272102e61ae795af02b (diff)
downloadchef-8dc27f1776d684289a6f1863251502ac7d1c6853.tar.gz
revert is_vip from ifconfig resource.
Diffstat (limited to 'lib/chef/provider/ifconfig.rb')
-rw-r--r--lib/chef/provider/ifconfig.rb4
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