fix ilo 5 plugin

This commit is contained in:
garnier-quentin 2019-12-30 10:24:28 +01:00
parent aaf382dfa2
commit 8d3b0c5ba3
2 changed files with 2 additions and 2 deletions

View File

@ -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}));

View File

@ -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}));