From: Sage Weil Date: Fri, 12 Jul 2019 21:23:17 +0000 (-0500) Subject: mgr/crash: nicely format 'crash info' output X-Git-Tag: v14.2.5~61^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5968d401676a5b38ddcc3c8a5e3a0dcf9f6183a5;p=ceph.git mgr/crash: nicely format 'crash info' output Signed-off-by: Sage Weil (cherry picked from commit 35f15f87cb936705f77ed1ca1ecaad796e021e7a) --- diff --git a/src/pybind/mgr/crash/module.py b/src/pybind/mgr/crash/module.py index 7330cad5ffb..af8ccf0e22f 100644 --- a/src/pybind/mgr/crash/module.py +++ b/src/pybind/mgr/crash/module.py @@ -62,6 +62,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):