From 01e2220fa7360032191f8c14c7c52ef2cb3e7d84 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Thu, 9 Feb 2023 17:25:12 +0000 Subject: [PATCH] (plugin) storage::netapp::ontap::restapi - fix quotas (#4210) --- src/storage/netapp/ontap/restapi/mode/quotas.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/netapp/ontap/restapi/mode/quotas.pm b/src/storage/netapp/ontap/restapi/mode/quotas.pm index 1655c9d78..0379d9475 100644 --- a/src/storage/netapp/ontap/restapi/mode/quotas.pm +++ b/src/storage/netapp/ontap/restapi/mode/quotas.pm @@ -278,14 +278,14 @@ sub manage_selection { $qtree !~ /$self->{option_results}->{filter_qtree}/); next if ($volume ne '' && 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 ($vserver ne '' && defined($self->{option_results}->{filter_vserver}) && $self->{option_results}->{filter_vserver} ne '' && $vserver !~ /$self->{option_results}->{filter_vserver}/); my $path = $vserver . $volume . $qtree; $self->{duplicated}->{$path} = 0 if (!defined($self->{duplicated}->{$path})); $self->{duplicated}->{$path}++; - $self->{quotas}->{$index} = { + $self->{quotas}->{$path . $index} = { index => $index, qtree => $qtree, volume => $volume,