From 045ff3692ce096bea23d2c2a01560de4975b1d9b Mon Sep 17 00:00:00 2001 From: Kiefer Chang Date: Thu, 19 Dec 2019 08:35:01 +0800 Subject: [PATCH] mgr/alerts: fix type of interval option The option needs to be in `secs` type to enable input checking and type casting. Signed-off-by: Kiefer Chang (cherry picked from commit 368c810a4200a57a772b8122fc606a2b36de7413) --- src/pybind/mgr/alerts/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/alerts/module.py b/src/pybind/mgr/alerts/module.py index 2567f7ee2f230..0cb9e6740b31f 100644 --- a/src/pybind/mgr/alerts/module.py +++ b/src/pybind/mgr/alerts/module.py @@ -21,7 +21,7 @@ class Alerts(MgrModule): MODULE_OPTIONS = [ { 'name': 'interval', - 'type': 'seconds', + 'type': 'secs', 'default': 60, 'desc': 'How frequently to reexamine health status', 'runtime': True, -- 2.39.5