initialize an empty array in disco_lvm_sudo

tags/zabbix-agent-addons-0.2.20-1
Daniel Berteaud 12 years ago
parent 54ffe7c67c
commit 828a502ea2
  1. 1
      zabbix_scripts/disco_lvm_sudo

@ -8,6 +8,7 @@ my $what = $ARGV[0];
open STDERR, '>/dev/null'; open STDERR, '>/dev/null';
my $json; my $json;
@{$json->{data}} = ();
if ($what eq "volumes"){ if ($what eq "volumes"){
foreach my $group (get_volume_group_list()){ foreach my $group (get_volume_group_list()){

Loading…
Cancel
Save