+ Fix ilo condition

This commit is contained in:
garnier-quentin 2016-12-07 13:14:32 +01:00
parent 82ac2ab348
commit 608c45addd
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ sub check {
$self->{components}->{ilo} = {name => 'ilo', total => 0, skip => 0};
return if ($self->check_filter(section => 'ilo'));
return if (!defined($self->{results}->{$mapping->{cpqSm2MibCondition}->{oid}}));
return if (scalar(keys %{$self->{results}->{$mapping->{cpqSm2MibCondition}->{oid}}}) == 0);
my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$mapping->{cpqSm2MibCondition}->{oid}}, instance => '0');
next if ($self->check_filter(section => 'ilo', instance => '0'));