From c5f20191d3aebfb10238dfccf3fc8da5f79f8438 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 6 May 2020 17:55:51 +0200 Subject: [PATCH] wip netapp santricity --- storage/netapp/santricity/restapi/mode/storagevolumes.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/netapp/santricity/restapi/mode/storagevolumes.pm b/storage/netapp/santricity/restapi/mode/storagevolumes.pm index 1746a8052..92a7df658 100644 --- a/storage/netapp/santricity/restapi/mode/storagevolumes.pm +++ b/storage/netapp/santricity/restapi/mode/storagevolumes.pm @@ -118,7 +118,7 @@ sub manage_selection { my ($self, %options) = @_; my $results = $options{custom}->execute_storages_request( - endpoint => '/storage-volumes', + endpoint => '/volumes', filter_name => $self->{option_results}->{filter_storage_name} ); @@ -131,9 +131,9 @@ sub manage_selection { volumes => {} }; - next if (!defined($_->{'/storage-volumes'})); + next if (!defined($_->{'/volumes'})); - foreach my $entry (@{$_->{'/storage-volumes'}}) { + foreach my $entry (@{$_->{'/volumes'}}) { next if (defined($options{filter_volume_name}) && $options{filter_volume_name} ne '' && $entry->{name} !~ /$options{filter_volume_name}/);