From 020e7a2818a5fbe4987575dffa25b7c95026369e Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 8 Oct 2019 11:14:44 +0200 Subject: [PATCH] Send an empty data array when Zimbra is not installed --- zabbix_scripts/disco_zimbra_sudo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix_scripts/disco_zimbra_sudo b/zabbix_scripts/disco_zimbra_sudo index f6b6167..8ed7e07 100644 --- a/zabbix_scripts/disco_zimbra_sudo +++ b/zabbix_scripts/disco_zimbra_sudo @@ -32,7 +32,7 @@ my $hostname = hostfqdn(); # If there's no zimbra user or no zmcontrol, just return an empty list if (not defined $zimuid or not defined $zimgid or not -e $zmprov){ - print to_json({}); + print to_json($json); exit; }