fix netapp cluster mode
This commit is contained in:
parent
eafeeedb06
commit
37467af7f3
|
@ -155,7 +155,7 @@ sub check_options {
|
||||||
sub manage_selection {
|
sub manage_selection {
|
||||||
my ($self, %options) = @_;
|
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} = {
|
$self->{clusters} = {
|
||||||
$cluster->{name} => {
|
$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}}) {
|
foreach (@{$nodes->{records}}) {
|
||||||
$self->{clusters}->{ $cluster->{name} }->{nodes}->{ $_->{name} } = {
|
$self->{clusters}->{ $cluster->{name} }->{nodes}->{ $_->{name} } = {
|
||||||
display => $_->{name},
|
display => $_->{name},
|
||||||
|
|
Loading…
Reference in New Issue