From 5968d401676a5b38ddcc3c8a5e3a0dcf9f6183a5 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 (cherry picked from commit 35f15f87cb936705f77ed1ca1ecaad796e021e7a) --- 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 7330cad5ffb92..af8ccf0e22f7f 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): -- 2.39.5