summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 16:54:35 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-17 16:54:35 +0000
commitc574923be8885023819876a962ab055ceb646749 (patch)
tree21a8c3d393ee5527f5589ce016645f15e173039e
parent96da6142e31059db951e8d9889bb25434aa57eaa (diff)
downloaddrakwizard-c574923be8885023819876a962ab055ceb646749.tar
drakwizard-c574923be8885023819876a962ab055ceb646749.tar.gz
drakwizard-c574923be8885023819876a962ab055ceb646749.tar.bz2
drakwizard-c574923be8885023819876a962ab055ceb646749.tar.xz
drakwizard-c574923be8885023819876a962ab055ceb646749.zip
(itf_getp) tag '$itf' parameter as optionnal as it really is
-rw-r--r--common/IFCFG.pm8
1 files changed, 4 insertions, 4 deletions
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 {