From: Kefu Chai Date: Sun, 17 Jan 2021 08:02:30 +0000 (+0800) Subject: mgr/progress: pass a str as the value of option to set_module_option() X-Git-Tag: v17.1.0~3164^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6cdbe8f9e837fcb804cc2c1c01cee2d0a8ba1595;p=ceph.git mgr/progress: pass a str as the value of option to set_module_option() MgrModule.set_module_option() only accepts str or None as its second parameter. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/progress/module.py b/src/pybind/mgr/progress/module.py index a708eab5ffb0..d9935c458180 100644 --- a/src/pybind/mgr/progress/module.py +++ b/src/pybind/mgr/progress/module.py @@ -801,10 +801,10 @@ class Module(MgrModule): self.log.warning("fail: ev {0} does not exist".format(ev_id)) def on(self): - self.set_module_option('enabled', True) + self.set_module_option('enabled', "true") def off(self): - self.set_module_option('enabled', False) + self.set_module_option('enabled', "false") def _handle_ls(self): if len(self._events) or len(self._completed_events):