Skip to content

Commit

Permalink
ifconfig: better status parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored and guillomovitch committed Sep 4, 2012
1 parent 97ce3a1 commit ba09203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FusionInventory/Agent/Tools/Linux.pm
Expand Up @@ -305,7 +305,7 @@ sub getInterfacesFromIfconfig {
$ifname =~ s/:$//;

my $status = 'Down';
if ($line =~ /<UP[>,]/) {
if ($line =~ /flags=.*[<,]UP[>,]/) {
$status = 'Up';
}

Expand Down

0 comments on commit ba09203

Please sign in to comment.