From 4cf186f5bb182ab4c2ceca06c87a3d5491957829 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 19 Feb 2021 23:53:21 +0800 Subject: [PATCH] mgr/diskprediction_local: drop unused COMMANDS the base class of `MgrModule` already has it Signed-off-by: Kefu Chai --- src/pybind/mgr/diskprediction_local/module.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/pybind/mgr/diskprediction_local/module.py b/src/pybind/mgr/diskprediction_local/module.py index 3a8113ad410..930fd1bbce4 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() -- 2.39.5