]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: improve error when inbuf is given to commands that don't use it 50976/head
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 10 Apr 2023 18:21:13 +0000 (14:21 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 12 Apr 2023 14:48:03 +0000 (10:48 -0400)
commitcd2495e2279bc7e4ba9b369cd91a4a6af1196bad
tree86fc8de16ee4443aa1902ccc2bf9167f218de0f7
parent8eb5be6a738b8d536d902be34c4bdd4819e0f310
pybind/mgr: improve error when inbuf is given to commands that don't use it

When the inbuf (-i) argument is passed to the cli and then onto a mgr
module, improve the error handling for CLICommand based calls and return
an error that can make sense to users rather than an obscure trace back.

Fixes: https://tracker.ceph.com/issues/59270
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/mgr_module.py