From 144ad46775897d592f88951e8f59b23db2241ed5 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 6 May 2020 17:30:00 +0200 Subject: [PATCH] wip netapp santricity --- storage/netapp/santricity/restapi/custom/api.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/netapp/santricity/restapi/custom/api.pm b/storage/netapp/santricity/restapi/custom/api.pm index d68cbec38..fb5df8190 100644 --- a/storage/netapp/santricity/restapi/custom/api.pm +++ b/storage/netapp/santricity/restapi/custom/api.pm @@ -189,11 +189,11 @@ sub execute_storages_request { next if (defined($options{filter_name}) && $options{filter_name} ne '' && $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; - $storages->{storages}->{$i}->{offline} = 1 if (!defined($info)); + my $info = $self->request_api(name => 'info', endpoint => '/' . $storages->{storages}->[$i]->{wwn} . '/' . $options{endpoint}); + $storages->{storages}->[$i]->{offline} = 0; + $storages->{storages}->[$i]->{offline} = 1 if (!defined($info)); - $storages->{storages}->{$i}->{ $options{endpoint} } = defined($info) ? $info->{info} : undef; + $storages->{storages}->[$i]->{ $options{endpoint} } = defined($info) ? $info->{info} : undef; } return $storages;