(self, *args, **kwargs)
| 654 | |
| 655 | class 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() |
nothing calls this directly
no test coverage detected