]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: add a wrapper exception for use with Responder
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 11 Apr 2022 19:32:42 +0000 (15:32 -0400)
committerAdam King <adking@redhat.com>
Sat, 21 May 2022 23:22:05 +0000 (19:22 -0400)
commit924aa084dafc7b1de7c6cd62db0bf2f5ffc01667
tree06269b61e45a5b039e2d67c0201b65cf7ac8e8de
parentd77a7f21493a90a9c5e395184108aa444ccf776c
pybind/mgr: add a wrapper exception for use with Responder

In order to best get a "real" exception converted to something
that can be cleanly sent to the mgr response, this new exception
type can be invoked directly, or with the wrap method to automatically
pull as many properties as possibly from the original exception.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 777814d59429bc28eeee0b13201b60b672226753)
src/pybind/mgr/object_format.py