From c574923be8885023819876a962ab055ceb646749 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 17 Oct 2012 16:54:35 +0000 Subject: (itf_getp) tag '$itf' parameter as optionnal as it really is --- common/IFCFG.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/IFCFG.pm b/common/IFCFG.pm index 942a9f01..a9a13037 100644 --- a/common/IFCFG.pm +++ b/common/IFCFG.pm @@ -68,11 +68,11 @@ sub default_itf { } sub itf_get { - my ($self, $key, $itf) = @_; + my ($self, $key, $o_itf) = @_; - $itf ||= default_itf(); - exists $self->{itf}{$itf}{$key} or print "ERROR: no $key field in $itf hash\n"; - $self->{itf}{$itf}{$key}; + $o_itf ||= default_itf(); + exists $self->{itf}{$o_itf}{$key} or print "ERROR: no $key field in $o_itf hash\n"; + $self->{itf}{$o_itf}{$key}; } sub network_get { -- cgit v1.2.1