From: Sage Weil Date: Fri, 12 Jul 2019 21:23:17 +0000 (-0500) Subject: mgr/crash: nicely format 'crash info' output X-Git-Tag: v15.1.0~2091^2~20 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=35f15f87cb936705f77ed1ca1ecaad796e021e7a;p=ceph.git mgr/crash: nicely format 'crash info' output Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/crash/module.py b/src/pybind/mgr/crash/module.py index 0bde8c89013..df2771bf156 100644 --- a/src/pybind/mgr/crash/module.py +++ b/src/pybind/mgr/crash/module.py @@ -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):