From 828a502ea286e16dea3fc60b6a204be061730e90 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 19 Apr 2013 18:17:07 +0200 Subject: [PATCH] initialize an empty array in disco_lvm_sudo --- zabbix_scripts/disco_lvm_sudo | 1 + 1 file changed, 1 insertion(+) diff --git a/zabbix_scripts/disco_lvm_sudo b/zabbix_scripts/disco_lvm_sudo index a03ab40..4bcf3f8 100644 --- a/zabbix_scripts/disco_lvm_sudo +++ b/zabbix_scripts/disco_lvm_sudo @@ -8,6 +8,7 @@ my $what = $ARGV[0]; open STDERR, '>/dev/null'; my $json; +@{$json->{data}} = (); if ($what eq "volumes"){ foreach my $group (get_volume_group_list()){