diff --git a/centreon/common/redfish/restapi/mode/components/fan.pm b/centreon/common/redfish/restapi/mode/components/fan.pm index 9456be684..dfca410c8 100644 --- a/centreon/common/redfish/restapi/mode/components/fan.pm +++ b/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/common/redfish/restapi/mode/components/psu.pm b/centreon/common/redfish/restapi/mode/components/psu.pm index d246769d1..e6c67c039 100644 --- a/centreon/common/redfish/restapi/mode/components/psu.pm +++ b/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}));