From 4183ce9f660f6a7ceceec889ed064f0c52e17128 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 17 Oct 2012 16:30:30 +0000 Subject: (is_dhcp) tag 'itf' parameter as optionnal as it really is --- common/IFCFG.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/IFCFG.pm b/common/IFCFG.pm index 38eed528..942a9f01 100644 --- a/common/IFCFG.pm +++ b/common/IFCFG.pm @@ -56,10 +56,10 @@ sub new { } sub is_dhcp { - my ($self, $itf) = @_; + my ($self, $o_itf) = @_; - $itf ||= default_itf(); - $self->{itf}{$itf}{BOOTPROTO} eq 'dhcp'; + $o_itf ||= default_itf(); + $self->{itf}{$o_itf}{BOOTPROTO} eq 'dhcp'; } #- TODO : return the main interface -- cgit v1.2.1