Return empty hash peth_port_ifindex() for consistency

Cover PowerEthernet methods with tests
This commit is contained in:
Eric A. Miller
2018-04-25 22:34:55 -04:00
parent 7f31038462
commit a6fdb107b4
2 changed files with 38 additions and 10 deletions

View File

@@ -73,7 +73,7 @@ sub peth_port_ifindex {
my $partial = shift;
my $peth_port_status = $peth->peth_port_status($partial);
my $peth_port_ifindex;
my $peth_port_ifindex = {};
foreach my $i ( keys %$peth_port_status ) {
my ( $module, $port ) = split( /\./, $i );