]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/zabbix: indent the output of "zabbix config-show" 37105/head
authorKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 12:29:56 +0000 (20:29 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 12:29:59 +0000 (20:29 +0800)
Fixes: https://tracker.ceph.com/issues/47404
Signed-off-by: Kefu Chai <kchai@redhat.com>
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']