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;