From 48196b9d97ddd56d71cb17a4a07e213bada64b03 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 6 May 2020 17:30:13 +0200 Subject: [PATCH] wip netapp santricity --- storage/netapp/santricity/restapi/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/netapp/santricity/restapi/custom/api.pm b/storage/netapp/santricity/restapi/custom/api.pm index fb5df8190..0fe7f72d7 100644 --- a/storage/netapp/santricity/restapi/custom/api.pm +++ b/storage/netapp/santricity/restapi/custom/api.pm @@ -187,7 +187,7 @@ sub execute_storages_request { for (my $i = 0; $i < scalar(@{$storages->{storages}}); $i++) { next if (defined($options{filter_name}) && $options{filter_name} ne '' && - $storages->{storages}->{$i}->{name} !~ /$options{filter_name}/); + $storages->{storages}->[$i]->{name} !~ /$options{filter_name}/); my $info = $self->request_api(name => 'info', endpoint => '/' . $storages->{storages}->[$i]->{wwn} . '/' . $options{endpoint}); $storages->{storages}->[$i]->{offline} = 0;