From e016cf71e90d0b627376bf299beeeed8803c0f9c Mon Sep 17 00:00:00 2001 From: osiu97 Date: Thu, 10 Jan 2019 11:46:01 +0000 Subject: [PATCH] removed whitespace in JSON output --- PVE-Zabbix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE-Zabbix.py b/PVE-Zabbix.py index 2b6f097..50efeee 100755 --- a/PVE-Zabbix.py +++ b/PVE-Zabbix.py @@ -62,7 +62,7 @@ def listofdicts_to_zabbix_json(dlist): newdict = {k: v} newdlist.append(newdict) newdlist = {"data": newdlist} - zabbixjson = json.dumps(newdlist) + zabbixjson = json.dumps(newdlist,separators=(',', ':')) return zabbixjson