From: Boris Ranto Date: Tue, 18 Sep 2018 07:33:22 +0000 (+0200) Subject: mgr/dashboard: Rename SSLCherryPyConfig X-Git-Tag: v13.2.3~81^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24734%2Fhead;p=ceph.git mgr/dashboard: Rename SSLCherryPyConfig The class does not always set up SSL, dropping the SSL bit. Fixes: http://tracker.ceph.com/issues/36069 Signed-off-by: Boris Ranto (cherry picked from commit 035b3a8b33d888b1d26662075f78d5f0fb14ed17) --- diff --git a/src/pybind/mgr/dashboard/module.py b/src/pybind/mgr/dashboard/module.py index d1d37dbb576..0b53743d743 100644 --- a/src/pybind/mgr/dashboard/module.py +++ b/src/pybind/mgr/dashboard/module.py @@ -87,7 +87,7 @@ class ServerConfigException(Exception): pass -class SSLCherryPyConfig(object): +class CherryPyConfig(object): """ Class for common server configuration done by both active and standby module, especially setting up SSL. @@ -207,7 +207,7 @@ class SSLCherryPyConfig(object): return uri -class Module(MgrModule, SSLCherryPyConfig): +class Module(MgrModule, CherryPyConfig): """ dashboard module entrypoint """ @@ -249,7 +249,7 @@ class Module(MgrModule, SSLCherryPyConfig): def __init__(self, *args, **kwargs): super(Module, self).__init__(*args, **kwargs) - SSLCherryPyConfig.__init__(self) + CherryPyConfig.__init__(self) mgr.init(self) @@ -312,7 +312,7 @@ class Module(MgrModule, SSLCherryPyConfig): def shutdown(self): super(Module, self).shutdown() - SSLCherryPyConfig.shutdown(self) + CherryPyConfig.shutdown(self) logger.info('Stopping engine...') self.shutdown_event.set() @@ -359,10 +359,10 @@ class Module(MgrModule, SSLCherryPyConfig): 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 @@ -414,7 +414,7 @@ class StandbyModule(MgrStandbyModule, SSLCherryPyConfig): self.log.info("Engine stopped.") def shutdown(self): - SSLCherryPyConfig.shutdown(self) + CherryPyConfig.shutdown(self) self.log.info("Stopping engine...") self.shutdown_event.set()