]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/orchestrator: Use CLICommand, except it's global variable
authorSebastian Wagner <sebastian.wagner@suse.com>
Wed, 12 Feb 2020 15:21:05 +0000 (16:21 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Mon, 17 Feb 2020 09:24:01 +0000 (10:24 +0100)
commite5933d5e47fb2e2b77f37678ce770a1887d54c08
tree3da78f0bc088acd6cb79a0ce09175db7f732c49a
parent128eb8371c6186e98db645853c3dc0b41279f788
mgr/orchestrator: Use CLICommand, except it's global variable

`CLICommand.COMMANDS` is a global varialbe that prevents
anyone from importing other modules, as the `COMMANS` are then
merged together. Let's use a meta class instead of a global variable.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/mgr_module.py
src/pybind/mgr/orchestrator/__init__.py
src/pybind/mgr/orchestrator/_interface.py
src/pybind/mgr/orchestrator/module.py