]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: fix incorrect construction of mgr CLI arguments
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 15 Aug 2022 18:47:47 +0000 (14:47 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 23 Aug 2022 17:01:45 +0000 (13:01 -0400)
commitd4aa1754f85df2b231738d031176bba90c93fbdf
treeba7053733ff1883794ada065499bd2af2845d7f6
parent7ef55fef71d87f762e38ba14d08b74d5a58800cb
pybind/mgr: fix incorrect construction of mgr CLI arguments

Instead of adding the extra_args correctly the code was "adding" the
"--format" option with the wrong name - using whatever the last argument
name in the actual arguments of the decorated function.

Updated tests to verify that the format option is added to the "ceph
args" string properly.

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