]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/plugins/interfaces.py
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / plugins / interfaces.py
index ade05e62f642df1aef8c77b0f518fc7e4d9cc7ef..f9169a0d89a6ea4f6fe17d17e0a1c58e58dc1582 100644 (file)
@@ -6,12 +6,7 @@ from . import PLUGIN_MANAGER as PM, Interface, Mixin  # pylint: disable=cyclic-i
 
 class CanMgr(Mixin):
     from .. import mgr
-    mgr = mgr
-
-
-class CanLog(Mixin):
-    from .. import logger
-    log = logger
+    mgr = mgr  # type: ignore
 
 
 class CanCherrypy(Mixin):
@@ -35,27 +30,29 @@ class Setupable(Interface):
     def setup(self):
         """
         Placeholder for plugin setup, right after server start.
-        CanMgr.mgr and CanLog.log are initialized by then.
+        CanMgr.mgr is initialized by then.
         """
-        pass
 
 
 @PM.add_interface
 class HasOptions(Interface):
     @PM.add_abcspec
-    def get_options(self): pass
+    def get_options(self):
+        pass
 
 
 @PM.add_interface
 class HasCommands(Interface):
     @PM.add_abcspec
-    def register_commands(self): pass
+    def register_commands(self):
+        pass
 
 
 @PM.add_interface
 class HasControllers(Interface):
     @PM.add_abcspec
-    def get_controllers(self): pass
+    def get_controllers(self):
+        pass
 
 
 @PM.add_interface
@@ -69,4 +66,5 @@ class FilterRequest(object):
     @PM.add_interface
     class BeforeHandler(Interface):
         @PM.add_abcspec
-        def filter_request_before_handler(self, request): pass
+        def filter_request_before_handler(self, request):
+            pass