From: Kefu Chai Date: Fri, 11 Sep 2020 12:29:56 +0000 (+0800) Subject: mgr/zabbix: indent the output of "zabbix config-show" X-Git-Tag: v16.1.0~1113^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ddceba1647096455a506a72d3bfe911e7e6e828a;p=ceph.git mgr/zabbix: indent the output of "zabbix config-show" Fixes: https://tracker.ceph.com/issues/47404 Signed-off-by: Kefu Chai --- 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']