MCPcopy Create free account
hub / github.com/ceph/ceph / __init__

Method __init__

src/pybind/mgr/dashboard/module.py:656–667  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

654
655class StandbyModule(MgrStandbyModule, CherryPyConfig):
656 def __init__(self, *args, **kwargs):
657 super(StandbyModule, self).__init__(*args, **kwargs)
658 CherryPyConfig.__init__(self)
659 self.shutdown_event = threading.Event()
660 self.standby_adapter = None
661 # configure the dashboard's crypto caller. by default it will
662 # use the remote caller to avoid pyo3 conflicts
663 choose_crypto_caller(str(self.get_module_option('crypto_caller', '')))
664
665 # We can set the global mgr instance to ourselves even though
666 # we're just a standby, because it's enough for logging.
667 mgr.init(self)
668
669 def serve(self):
670 conf_result = self.await_configuration()

Callers

nothing calls this directly

Calls 5

choose_crypto_callerFunction · 0.90
__init__Method · 0.45
EventMethod · 0.45
get_module_optionMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected