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

Method __init__

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

Source from the content-addressed store, hash-verified

305 lambda: collections.deque(maxlen=10))) # type: dict
306
307 def __init__(self, *args, **kwargs):
308 super(Module, self).__init__(*args, **kwargs)
309 CherryPyConfig.__init__(self)
310 self.server_adapter = None
311
312 # configure the dashboard's crypto caller. by default it will
313 # use the remote caller to avoid pyo3 conflicts
314 choose_crypto_caller(str(self.get_module_option('crypto_caller', '')))
315
316 mgr.init(self)
317
318 self._stopping = threading.Event()
319 self.shutdown_event = threading.Event()
320 self.ACCESS_CTRL_DB = None
321 self.SSO_DB = None
322 self.health_checks = {}
323 self.nvmeof_collectors = {}
324
325 @classmethod
326 def can_run(cls):

Callers 1

__init__Method · 0.45

Calls 4

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

Tested by

no test coverage detected