From: Kefu Chai Date: Fri, 19 Feb 2021 15:53:21 +0000 (+0800) Subject: mgr/diskprediction_local: drop unused COMMANDS X-Git-Tag: v17.1.0~2905^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4cf186f5bb182ab4c2ceca06c87a3d5491957829;p=ceph.git mgr/diskprediction_local: drop unused COMMANDS the base class of `MgrModule` already has it Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/diskprediction_local/module.py b/src/pybind/mgr/diskprediction_local/module.py index 3a8113ad410d..930fd1bbce4b 100644 --- a/src/pybind/mgr/diskprediction_local/module.py +++ b/src/pybind/mgr/diskprediction_local/module.py @@ -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()