mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
fix netapp rest api endpoint
This commit is contained in:
parent
3fcdd46646
commit
a42ec0d7b8
@ -44,7 +44,7 @@ sub check_options {
|
|||||||
sub manage_selection {
|
sub manage_selection {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
return $options{custom}->request_api(url_path => '/api/storage/volumes?fields=*');
|
return $options{custom}->request_api(endpoint => '/api/storage/volumes?fields=*');
|
||||||
}
|
}
|
||||||
|
|
||||||
sub run {
|
sub run {
|
||||||
|
@ -172,7 +172,7 @@ sub check_options {
|
|||||||
sub manage_selection {
|
sub manage_selection {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
my $volumes = $options{custom}->request_api(url_path => '/api/storage/volumes?fields=*');
|
my $volumes = $options{custom}->request_api(endpoint => '/api/storage/volumes?fields=*');
|
||||||
|
|
||||||
$self->{volumes} = {};
|
$self->{volumes} = {};
|
||||||
foreach (@{$volumes->{records}}) {
|
foreach (@{$volumes->{records}}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user