From 9cd2fbcf781c5d7dbdb6ee3a5a0126ea3fbeb18c Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 5 Feb 2021 16:23:22 +0100 Subject: [PATCH] dont break filter --- storage/netapp/ontap/restapi/mode/volumes.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/netapp/ontap/restapi/mode/volumes.pm b/storage/netapp/ontap/restapi/mode/volumes.pm index 4823f6aed..dd0f2dd55 100644 --- a/storage/netapp/ontap/restapi/mode/volumes.pm +++ b/storage/netapp/ontap/restapi/mode/volumes.pm @@ -176,8 +176,8 @@ sub manage_selection { next; } if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && - $name !~ /$self->{option_results}->{filter_name}/) { - $self->{output}->output_add(long_msg => "skipping volume '" . $name . "': no matching filter.", debug => 1); + $_->{name} !~ /$self->{option_results}->{filter_name}/) { + $self->{output}->output_add(long_msg => "skipping volume '" . $_->{name} . "': no matching filter.", debug => 1); next; } @@ -223,7 +223,7 @@ Example: --filter-counters='^usage$' =item B<--filter-name> -Filter volume name (can be a regexp). +Filter volumes by volume name (can be a regexp). =item B<--filter-vserver-name>