Skip to content

Commit

Permalink
fix: snytax error in Network.pm
Browse files Browse the repository at this point in the history
see: #1733

Reported-by: Sofiane Marchoud <sofiane.marchoud@sage.com>
  • Loading branch information
Gonéri Le Bouder committed Jul 25, 2012
1 parent 2d93d0b commit 6385ca9
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -4,6 +4,7 @@ use strict;
use warnings;

use FusionInventory::Agent::Tools;
use FusionInventory::Agent::Tools::Unix;
use FusionInventory::Agent::Tools::Network;

#TODO Get driver pcislot virtualdev
Expand Down Expand Up @@ -75,7 +76,7 @@ sub _parseLanscan {

my @interfaces;
while (my $line = <$handle>) {
next unless /^0x($alt_mac_address_pattern)\s(\S+)\s(\S+)\s+(\S+)/;
next unless $line =~ /^0x($alt_mac_address_pattern)\s(\S+)\s(\S+)\s+(\S+)/;
my $interface = {
MACADDR => alt2canonical($1),
STATUS => 'Down'
Expand All @@ -91,7 +92,6 @@ sub _parseLanscan {
$interface->{SPEED} = $lanadminInfo->{Speed} > 1000000 ?
$lanadminInfo->{Speed} / 1000000 :
$lanadminInfo->{Speed};

my $ifconfigInfo = _getIfconfigInfo(
command => "ifconfig $name", logger => $params{logger}
);
Expand Down

0 comments on commit 6385ca9

Please sign in to comment.