]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/mgr_module.py: CLICommand: Fix parsing of kwargs arguments 36877/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Fri, 28 Aug 2020 10:56:49 +0000 (12:56 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 28 Aug 2020 10:56:49 +0000 (12:56 +0200)
commit922f962ae123b94ee7f92722190d19280f4ef6e3
treeb12093e83e7eb4aa303bfa3145295cc5dff54479
parentfb7729c605711baa5528c57a77aa071a7b4f4432
mgr/mgr_module.py: CLICommand: Fix parsing of kwargs arguments

Make parsing of keyword arguments a bit safer by
makeing sure the key is actually a valid parameter name

Fixes: https://tracker.ceph.com/issues/47185
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/mgr_module.py
src/pybind/mgr/orchestrator/tests/test_orchestrator.py