Initialize an empty array in disco_backuppc_sudo

tags/zabbix-agent-addons-0.2.20-1
Daniel Berteaud 12 years ago
parent 708cdf2747
commit a734699fc9
  1. 1
      zabbix_scripts/disco_backuppc_sudo

@ -31,6 +31,7 @@ my $hosts = $bpc->HostInfoRead();
my $mainConf = $bpc->ConfigDataRead();
my $json;
@{$json->{data}} = ();
foreach my $host (keys %$hosts){
next unless ($host =~ m!$regex!);
my $hostConf = $bpc->ConfigDataRead($host);

Loading…
Cancel
Save