]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: load all modules (not just active ones)
authorJohn Spray <john.spray@redhat.com>
Thu, 16 Nov 2017 11:45:45 +0000 (06:45 -0500)
committerJohn Spray <john.spray@redhat.com>
Wed, 24 Jan 2018 18:08:20 +0000 (13:08 -0500)
commit6a8da7ca734726315c06929635c25dbb88599654
treea51c2420143c155947e30488ad930d735ff06e42
parentf852f640bff8de5971669699ff7af43b3ceea84b
mgr: load all modules (not just active ones)

This is to enable us to learn more about the module
before it is enabled, such as whether its can_run method
return true.

We can also use this to enable loading a module's
commands before it is enabled, to give the user
a better response when they try to use a command
belong to a module that is not loaded.

Signed-off-by: John Spray <john.spray@redhat.com>
14 files changed:
src/CMakeLists.txt
src/mgr/ActivePyModule.cc
src/mgr/ActivePyModule.h
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/MgrStandby.cc
src/mgr/PyModule.cc [new file with mode: 0644]
src/mgr/PyModule.h [new file with mode: 0644]
src/mgr/PyModuleRegistry.cc
src/mgr/PyModuleRegistry.h
src/mgr/PyModuleRunner.cc
src/mgr/PyModuleRunner.h
src/mgr/StandbyPyModules.cc
src/mgr/StandbyPyModules.h