Return empty hash peth_port_ifindex() for consistency
Cover PowerEthernet methods with tests
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user