From 3f53c3a0fac0c34c06398e1b8cc5292277158e44 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 23 Jul 2018 19:53:03 +0200 Subject: [PATCH] Initialize an empty json object --- zabbix_scripts/check_pve_sudo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix_scripts/check_pve_sudo b/zabbix_scripts/check_pve_sudo index 7f03002..8349d9d 100644 --- a/zabbix_scripts/check_pve_sudo +++ b/zabbix_scripts/check_pve_sudo @@ -8,7 +8,7 @@ use File::Which; use Data::Dumper; my $pvesh = which('pvesh'); -my $json; +my $json = {}; my $pretty = 0; my ($cluster,$guest,$node,$storage,$pool) = undef;