From c336d603932a808cc8f82dcf5867a1ddb4cf696b Mon Sep 17 00:00:00 2001 From: Kiefer Chang Date: Wed, 27 May 2020 14:43:37 +0800 Subject: [PATCH] mgr: include retval in MonCommandFailed exception Signed-off-by: Kiefer Chang --- src/pybind/mgr/mgr_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 8cc419b764d2..49c94826b3a8 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -1093,7 +1093,7 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin): r = HandleCommandResult(*self.mon_command(cmd_dict)) if r.retval: - raise MonCommandFailed(f'{cmd_dict["prefix"]} failed: {r.stderr}') + raise MonCommandFailed(f'{cmd_dict["prefix"]} failed: {r.stderr} retval: {r.retval}') return r def mon_command(self, cmd_dict): -- 2.47.3