]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: add format arg to Responder's extra args
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 11 Apr 2022 19:16:34 +0000 (15:16 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 13 May 2022 14:42:00 +0000 (10:42 -0400)
commitefee0d7ebc5d990338eb6d256fe23717bafe128d
tree07d30283220411ba13e9f7d7179de652d0e9ee51
parent2b22297f5664a2c778f6591dd1e1f3822fc5a3c1
pybind/mgr: add format arg to Responder's extra args

To ensure that the Responder can make use of a user provided `--format=`
parameter even if the programmer doesn't explicitly add one to the
args of an endpoint function we set the `extra_args` attribute on
our wrapper function so that CLICommand can later extract it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/object_format.py