]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/zabbix: indent the output of "zabbix config-show" 37128/head
authorKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 12:29:56 +0000 (20:29 +0800)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 14 Sep 2020 03:32:33 +0000 (10:32 +0700)
Fixes: https://tracker.ceph.com/issues/47404
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit ddceba1647096455a506a72d3bfe911e7e6e828a)

src/pybind/mgr/zabbix/module.py

index cc84e428de946a296000ffc812c67b02d6a93929..d427038fa3107d2cbedf98c28798f4203196f696 100644 (file)
@@ -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']