(plugin) hardware::server::hp::ilo::restapi - trailing slash (#3536)

This commit is contained in:
qgarnier 2022-03-09 10:46:08 +01:00 committed by GitHub
parent 3683ee7e49
commit 257b89beff
1 changed files with 4 additions and 4 deletions

View File

@ -37,15 +37,15 @@ sub set_system {
['ok', 'OK'],
['warning', 'WARNING'],
['critical', 'CRITICAL'],
['n/a', 'OK'],
['n/a', 'OK']
],
state => [
# can be: absent, deferring, disabled, enabled,
# inTest, quiesced, standbyOffline, standbySpare
# starting, unavailableOffline, updating
['updating', 'WARNING'],
['.*', 'OK'],
],
['.*', 'OK']
]
};
$self->{components_exec_load} = 0;
@ -84,7 +84,7 @@ sub get_devices {
$self->get_chassis() if (!defined($self->{chassis}));
foreach my $chassis (@{$self->{chassis}}) {
$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}}) {
my $device_detailed = $self->{custom}->request_api(url_path => $_->{'@odata.id'});
push @{$chassis->{Devices}}, $device_detailed;