Prevent warning in _get_topo_data() from undef arg

This commit is contained in:
Eric A. Miller
2018-03-21 23:33:10 -04:00
parent 76cbb05f19
commit 1c948d6e45

View File

@@ -2721,7 +2721,7 @@ sub _get_topo_data {
my $self = shift;
my $partial = shift;
my $topo_cap = shift;
my $method = shift;
my $method = shift || '';
return unless $method =~ /(ip|if|port|id|platform|cap)/;