From a734699fc9e8e2081e7265e69f31ad02cd4e541f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 23 Apr 2013 12:57:53 +0200 Subject: [PATCH] Initialize an empty array in disco_backuppc_sudo --- zabbix_scripts/disco_backuppc_sudo | 1 + 1 file changed, 1 insertion(+) diff --git a/zabbix_scripts/disco_backuppc_sudo b/zabbix_scripts/disco_backuppc_sudo index 65461bc..fa6aacc 100644 --- a/zabbix_scripts/disco_backuppc_sudo +++ b/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);