Skip to content

Commit

Permalink
no interest in other attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Aug 12, 2012
1 parent 2e874cf commit 57625d1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -64,7 +64,7 @@ sub _getInterfaces {
# use the list of interfaces found there, using the prototype
# to provide additional informations
foreach my $interface (@{$ifStatNrv{$prototype->{DESCRIPTION}}}) {
foreach my $key (keys %$prototype) {
foreach my $key (qw/MACADDR STATUS TYPE SPEED/) {
next unless $prototype->{$key};
$interface->{$key} = $prototype->{$key};
}
Expand Down

0 comments on commit 57625d1

Please sign in to comment.