summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-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 {