From 35f15f87cb936705f77ed1ca1ecaad796e021e7a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 12 Jul 2019 16:23:17 -0500 Subject: [PATCH] mgr/crash: nicely format 'crash info' output Signed-off-by: Sage Weil --- src/pybind/mgr/crash/module.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.39.5