summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/IFCFG.pm6
1 files changed, 3 insertions, 3 deletions
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