]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/diskprediction_local: drop unused COMMANDS
authorKefu Chai <kchai@redhat.com>
Fri, 19 Feb 2021 15:53:21 +0000 (23:53 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 20 Feb 2021 06:36:53 +0000 (14:36 +0800)
the base class of `MgrModule` already has it

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/diskprediction_local/module.py

index 3a8113ad410dccbcafa0e67482ce4a78254f81bd..930fd1bbce4b1a63bd1d9c33aea2d9a21db7920c 100644 (file)
@@ -32,8 +32,6 @@ class Module(MgrModule):
                default='prophetstor')
     ]
 
-    COMMANDS = []
-
     def __init__(self, *args, **kwargs):
         super(Module, self).__init__(*args, **kwargs)
         # options
@@ -59,10 +57,6 @@ class Module(MgrModule):
                     self.get_module_option(opt['name']))
             self.log.debug(' %s = %s', opt['name'], getattr(self, opt['name']))
 
-    def handle_command(self, _, cmd):
-        self.log.debug('handle_command cmd: %s', cmd)
-        raise NotImplementedError(cmd['prefix'])
-
     def self_test(self):
         self.log.debug('self_test enter')
         ret, out, err = self.predict_all_devices()