From 39bc7dcd6ea080406cd17ec87773e86e0f67a0b5 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 30 Dec 2019 10:29:01 +0100 Subject: [PATCH] fix ilo 5 plugin --- centreon/common/redfish/restapi/mode/components/device.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/centreon/common/redfish/restapi/mode/components/device.pm b/centreon/common/redfish/restapi/mode/components/device.pm index 9462dd117..d840af86e 100644 --- a/centreon/common/redfish/restapi/mode/components/device.pm +++ b/centreon/common/redfish/restapi/mode/components/device.pm @@ -42,6 +42,7 @@ sub check { my $instance = $chassis->{Id} . '.' . $device->{Id}; $device->{Status}->{Health} = defined($device->{Status}->{Health}) ? $device->{Status}->{Health} : 'n/a'; + $device->{Status}->{State} = defined($device->{Status}->{State}) ? $device->{Status}->{State} : 'n/a'; next if ($self->check_filter(section => 'device', instance => $instance)); $self->{components}->{device}->{total}++;