Chomp upc output

tags/zabbix-agent-addons-0.2.20-1
Daniel Berteaud 9 years ago
parent c47da02021
commit fc9002b06e
  1. 2
      lib/Zabbix/Agent/Addons/UPS.pm

@ -11,7 +11,7 @@ sub list_ups {
if ($upsc && -x $upsc){ if ($upsc && -x $upsc){
my @out = qx($upsc -l); my @out = qx($upsc -l);
if ($? == 0){ if ($? == 0){
@ups = @out; @ups = map { chomp($_) } @out;
} }
} }
return @ups; return @ups;

Loading…
Cancel
Save