From 5750a1c375f199aa9a91638dcb22bc9d89db9318 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 14 Oct 2020 14:59:28 +0200 Subject: [PATCH] fix network filter --- network/cisco/meraki/cloudcontroller/restapi/mode/networks.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/cisco/meraki/cloudcontroller/restapi/mode/networks.pm b/network/cisco/meraki/cloudcontroller/restapi/mode/networks.pm index 017fc049b..adfb19856 100644 --- a/network/cisco/meraki/cloudcontroller/restapi/mode/networks.pm +++ b/network/cisco/meraki/cloudcontroller/restapi/mode/networks.pm @@ -132,7 +132,7 @@ sub manage_selection { my $cache_networks = $options{custom}->get_cache_networks(); foreach (values %$cache_networks) { 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); next; }