fix netapp cluster mode

This commit is contained in:
garnier-quentin 2020-06-24 14:42:03 +02:00
parent eafeeedb06
commit 37467af7f3
1 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ sub check_options {
sub manage_selection {
my ($self, %options) = @_;
my $cluster = $options{custom}->request_api(endpoint => '/api/storage/cluster?fields=*');
my $cluster = $options{custom}->request_api(endpoint => '/api/cluster?fields=*');
$self->{clusters} = {
$cluster->{name} => {
@ -173,7 +173,7 @@ sub manage_selection {
}
};
my $nodes = $options{custom}->request_api(endpoint => '/api/storage/cluster/nodes?fields=*');
my $nodes = $options{custom}->request_api(endpoint => '/api/cluster/nodes?fields=*');
foreach (@{$nodes->{records}}) {
$self->{clusters}->{ $cluster->{name} }->{nodes}->{ $_->{name} } = {
display => $_->{name},