]> 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)
committerAdam King <adking@redhat.com>
Mon, 5 Sep 2022 18:30:46 +0000 (14:30 -0400)
commit596b09da25a7d97888ed7ae243888b315600d42c
tree6a5dd4b79bbd03279e1fa43a3d81c9b4f6795118
parentef3d848b8e6715514d567be708c820e825041526
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>
(cherry picked from commit d4aa1754f85df2b231738d031176bba90c93fbdf)
src/pybind/mgr/mgr_module.py
src/pybind/mgr/tests/test_object_format.py