From 8d3b0c5ba3fc694deb21b836bc3d97b04f300336 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 30 Dec 2019 10:24:28 +0100 Subject: [PATCH] fix ilo 5 plugin --- .../centreon/common/redfish/restapi/mode/components/fan.pm | 2 +- .../centreon/common/redfish/restapi/mode/components/psu.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/centreon/common/redfish/restapi/mode/components/fan.pm b/centreon-plugins/centreon/common/redfish/restapi/mode/components/fan.pm index 9456be684..dfca410c8 100644 --- a/centreon-plugins/centreon/common/redfish/restapi/mode/components/fan.pm +++ b/centreon-plugins/centreon/common/redfish/restapi/mode/components/fan.pm @@ -32,7 +32,7 @@ sub check { my ($self) = @_; $self->{output}->output_add(long_msg => 'checking fans'); - $self->{components}->{chassis} = { name => 'fans', total => 0, skip => 0 }; + $self->{components}->{fan} = { name => 'fans', total => 0, skip => 0 }; return if ($self->check_filter(section => 'fan')); $self->get_chassis() if (!defined($self->{chassis})); diff --git a/centreon-plugins/centreon/common/redfish/restapi/mode/components/psu.pm b/centreon-plugins/centreon/common/redfish/restapi/mode/components/psu.pm index d246769d1..e6c67c039 100644 --- a/centreon-plugins/centreon/common/redfish/restapi/mode/components/psu.pm +++ b/centreon-plugins/centreon/common/redfish/restapi/mode/components/psu.pm @@ -27,7 +27,7 @@ sub check { my ($self) = @_; $self->{output}->output_add(long_msg => 'checking power supplies'); - $self->{components}->{psu} = { name => 'psus', total => 0, skip => 0 }; + $self->{components}->{psu} = { name => 'psu', total => 0, skip => 0 }; return if ($self->check_filter(section => 'psu')); $self->get_chassis() if (!defined($self->{chassis}));