]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/crash: nicely format 'crash info' output
authorSage Weil <sage@redhat.com>
Fri, 12 Jul 2019 21:23:17 +0000 (16:23 -0500)
committerSage Weil <sage@redhat.com>
Tue, 16 Jul 2019 14:22:53 +0000 (09:22 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/crash/module.py

index 0bde8c89013a1855dcf7be592ef2c9617def67d5..df2771bf156ac6accc72006904d4fb5501df1f6c 100644 (file)
@@ -66,6 +66,7 @@ class Module(MgrModule):
         val = self.get_store(key)
         if not val:
             return errno.EINVAL, '', 'crash info: %s not found' % crashid
+        val = json.dumps(json.loads(val), indent=4)
         return 0, val, ''
 
     def do_post(self, cmd, inbuf):