pass
-class SSLCherryPyConfig(object):
+class CherryPyConfig(object):
"""
Class for common server configuration done by both active and
standby module, especially setting up SSL.
return uri
-class Module(MgrModule, SSLCherryPyConfig):
+class Module(MgrModule, CherryPyConfig):
"""
dashboard module entrypoint
"""
def __init__(self, *args, **kwargs):
super(Module, self).__init__(*args, **kwargs)
- SSLCherryPyConfig.__init__(self)
+ CherryPyConfig.__init__(self)
mgr.init(self)
def shutdown(self):
super(Module, self).shutdown()
- SSLCherryPyConfig.shutdown(self)
+ CherryPyConfig.shutdown(self)
logger.info('Stopping engine...')
self.shutdown_event.set()
NotificationQueue.new_notification(notify_type, notify_id)
-class StandbyModule(MgrStandbyModule, SSLCherryPyConfig):
+class StandbyModule(MgrStandbyModule, CherryPyConfig):
def __init__(self, *args, **kwargs):
super(StandbyModule, self).__init__(*args, **kwargs)
- SSLCherryPyConfig.__init__(self)
+ CherryPyConfig.__init__(self)
self.shutdown_event = threading.Event()
# We can set the global mgr instance to ourselves even though
self.log.info("Engine stopped.")
def shutdown(self):
- SSLCherryPyConfig.shutdown(self)
+ CherryPyConfig.shutdown(self)
self.log.info("Stopping engine...")
self.shutdown_event.set()