From 19e27514d6263d8d80e3c3209c07d5cf5354dc62 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 17 Jan 2021 16:02:30 +0800 Subject: [PATCH] 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 (cherry picked from commit 6cdbe8f9e837fcb804cc2c1c01cee2d0a8ba1595) --- src/pybind/mgr/progress/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/progress/module.py b/src/pybind/mgr/progress/module.py index a708eab5ffb00..d9935c4581808 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): -- 2.39.5