(plugin) hardware::server::hp::ilo::restapi - trailing slash (#3536)
This commit is contained in:
parent
3683ee7e49
commit
257b89beff
|
@ -37,15 +37,15 @@ sub set_system {
|
||||||
['ok', 'OK'],
|
['ok', 'OK'],
|
||||||
['warning', 'WARNING'],
|
['warning', 'WARNING'],
|
||||||
['critical', 'CRITICAL'],
|
['critical', 'CRITICAL'],
|
||||||
['n/a', 'OK'],
|
['n/a', 'OK']
|
||||||
],
|
],
|
||||||
state => [
|
state => [
|
||||||
# can be: absent, deferring, disabled, enabled,
|
# can be: absent, deferring, disabled, enabled,
|
||||||
# inTest, quiesced, standbyOffline, standbySpare
|
# inTest, quiesced, standbyOffline, standbySpare
|
||||||
# starting, unavailableOffline, updating
|
# starting, unavailableOffline, updating
|
||||||
['updating', 'WARNING'],
|
['updating', 'WARNING'],
|
||||||
['.*', 'OK'],
|
['.*', 'OK']
|
||||||
],
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
$self->{components_exec_load} = 0;
|
$self->{components_exec_load} = 0;
|
||||||
|
@ -84,7 +84,7 @@ sub get_devices {
|
||||||
$self->get_chassis() if (!defined($self->{chassis}));
|
$self->get_chassis() if (!defined($self->{chassis}));
|
||||||
foreach my $chassis (@{$self->{chassis}}) {
|
foreach my $chassis (@{$self->{chassis}}) {
|
||||||
$chassis->{Devices} = [];
|
$chassis->{Devices} = [];
|
||||||
my $result = $self->{custom}->request_api(url_path => $chassis->{'@odata.id'} . 'Devices');
|
my $result = $self->{custom}->request_api(url_path => $chassis->{'@odata.id'} . 'Devices/');
|
||||||
foreach (@{$result->{Members}}) {
|
foreach (@{$result->{Members}}) {
|
||||||
my $device_detailed = $self->{custom}->request_api(url_path => $_->{'@odata.id'});
|
my $device_detailed = $self->{custom}->request_api(url_path => $_->{'@odata.id'});
|
||||||
push @{$chassis->{Devices}}, $device_detailed;
|
push @{$chassis->{Devices}}, $device_detailed;
|
||||||
|
|
Loading…
Reference in New Issue