]> 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)
committerAdam King <adking@redhat.com>
Sat, 21 May 2022 23:21:51 +0000 (19:21 -0400)
commitd527646cbe0e82de73798cc200f80fe7c62e3af8
treebbb9a06fd95b8d477ec4ecd1535d040f75f97c65
parent40c84ec426677f084f2bf20bf45844997587ca88
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>
(cherry picked from commit efee0d7ebc5d990338eb6d256fe23717bafe128d)
src/pybind/mgr/object_format.py