Fix powerware ups

This commit is contained in:
garnier-quentin 2019-12-20 09:26:54 +01:00
parent ef2cdceec9
commit 157eb81cfa
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ sub manage_selection {
next if (defined($self->{iline}->{$instance}));
my $result = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result, instance => $instance);
$result->{xupsInputCurrent} = 0 if (defined($result->{xupsInputCurrent}) && $result->{xupsInputCurrent} eq '');
$self->{iline}->{$instance} = { display => $instance, %$result };
}