From 157eb81cfabf94bb31130697d4bb8ef006f60b77 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 20 Dec 2019 09:26:54 +0100 Subject: [PATCH] Fix powerware ups --- hardware/ups/powerware/snmp/mode/inputlines.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/hardware/ups/powerware/snmp/mode/inputlines.pm b/hardware/ups/powerware/snmp/mode/inputlines.pm index 9830ce8e1..a7edbe6ae 100644 --- a/hardware/ups/powerware/snmp/mode/inputlines.pm +++ b/hardware/ups/powerware/snmp/mode/inputlines.pm @@ -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 }; }