From ddceba1647096455a506a72d3bfe911e7e6e828a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 11 Sep 2020 20:29:56 +0800 Subject: [PATCH] mgr/zabbix: indent the output of "zabbix config-show" Fixes: https://tracker.ceph.com/issues/47404 Signed-off-by: Kefu Chai --- src/pybind/mgr/zabbix/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/zabbix/module.py b/src/pybind/mgr/zabbix/module.py index cc84e428de946..d427038fa3107 100644 --- a/src/pybind/mgr/zabbix/module.py +++ b/src/pybind/mgr/zabbix/module.py @@ -404,7 +404,7 @@ class Module(MgrModule): def handle_command(self, inbuf, command): if command['prefix'] == 'zabbix config-show': - return 0, json.dumps(self.config, index=4, sort_keys=True), '' + return 0, json.dumps(self.config, indent=4, sort_keys=True), '' elif command['prefix'] == 'zabbix config-set': key = command['key'] value = command['value'] -- 2.39.5