#330 fix redefine of port variable
This commit is contained in:
@@ -150,7 +150,7 @@ sub interfaces {
|
|||||||
my $port = $i_descr->{$iid};
|
my $port = $i_descr->{$iid};
|
||||||
next unless defined $port;
|
next unless defined $port;
|
||||||
|
|
||||||
my $port = SNMP::Info::munge_null($port);
|
$port = SNMP::Info::munge_null($port);
|
||||||
$port =~ s/^\s+//; $port =~ s/\s+$//;
|
$port =~ s/^\s+//; $port =~ s/\s+$//;
|
||||||
next unless length $port;
|
next unless length $port;
|
||||||
|
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ sub interfaces {
|
|||||||
my $port = $i_descr->{$iid};
|
my $port = $i_descr->{$iid};
|
||||||
next unless defined $port;
|
next unless defined $port;
|
||||||
|
|
||||||
my $port = SNMP::Info::munge_null($port);
|
$port = SNMP::Info::munge_null($port);
|
||||||
$port =~ s/^\s+//; $port =~ s/\s+$//;
|
$port =~ s/^\s+//; $port =~ s/\s+$//;
|
||||||
next unless length $port;
|
next unless length $port;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user