Prevent warning in _get_topo_data() from undef arg
This commit is contained in:
@@ -2721,7 +2721,7 @@ sub _get_topo_data {
|
|||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $partial = shift;
|
my $partial = shift;
|
||||||
my $topo_cap = shift;
|
my $topo_cap = shift;
|
||||||
my $method = shift;
|
my $method = shift || '';
|
||||||
|
|
||||||
return unless $method =~ /(ip|if|port|id|platform|cap)/;
|
return unless $method =~ /(ip|if|port|id|platform|cap)/;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user