fix network filter

This commit is contained in:
garnier-quentin 2020-10-14 14:59:28 +02:00
parent c5020926ed
commit 636eedf71b
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ sub manage_selection {
my $cache_networks = $options{custom}->get_cache_networks(); my $cache_networks = $options{custom}->get_cache_networks();
foreach (values %$cache_networks) { foreach (values %$cache_networks) {
if (defined($self->{option_results}->{filter_network_name}) && $self->{option_results}->{filter_network_name} ne '' && if (defined($self->{option_results}->{filter_network_name}) && $self->{option_results}->{filter_network_name} ne '' &&
$_->{name} !~ /$self->{option_results}->{filter_device_name}/) { $_->{name} !~ /$self->{option_results}->{filter_network_name}/) {
$self->{output}->output_add(long_msg => "skipping network '" . $_->{name} . "': no matching filter.", debug => 1); $self->{output}->output_add(long_msg => "skipping network '" . $_->{name} . "': no matching filter.", debug => 1);
next; next;
} }