From d89fca7c65f3053d213fe8b4dbc0c92c91d70f05 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 11 Apr 2023 16:28:29 +0200 Subject: [PATCH] (plugin) storage::netapp::ontap::restapi - mode quotas change filters (#4339) --- src/storage/netapp/ontap/restapi/mode/quotas.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage/netapp/ontap/restapi/mode/quotas.pm b/src/storage/netapp/ontap/restapi/mode/quotas.pm index 0379d9475..d2c3e5758 100644 --- a/src/storage/netapp/ontap/restapi/mode/quotas.pm +++ b/src/storage/netapp/ontap/restapi/mode/quotas.pm @@ -274,11 +274,11 @@ sub manage_selection { next if (defined($self->{option_results}->{filter_index}) && $self->{option_results}->{filter_index} ne '' && $index !~ /$self->{option_results}->{filter_index}/); - next if ($qtree ne '' && defined($self->{option_results}->{filter_qtree}) && $self->{option_results}->{filter_qtree} ne '' && + next if (defined($self->{option_results}->{filter_qtree}) && $self->{option_results}->{filter_qtree} ne '' && $qtree !~ /$self->{option_results}->{filter_qtree}/); - next if ($volume ne '' && defined($self->{option_results}->{filter_volume}) && $self->{option_results}->{filter_volume} ne '' && + next if (defined($self->{option_results}->{filter_volume}) && $self->{option_results}->{filter_volume} ne '' && $volume !~ /$self->{option_results}->{filter_volume}/); - next if ($vserver ne '' && defined($self->{option_results}->{filter_vserver}) && $self->{option_results}->{filter_vserver} ne '' && + next if (defined($self->{option_results}->{filter_vserver}) && $self->{option_results}->{filter_vserver} ne '' && $vserver !~ /$self->{option_results}->{filter_vserver}/); my $path = $vserver . $volume . $qtree;