From: Kiefer Chang Date: Thu, 19 Dec 2019 00:35:01 +0000 (+0800) Subject: mgr/alerts: fix type of interval option X-Git-Tag: v14.2.11~52^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=045ff3692ce096bea23d2c2a01560de4975b1d9b;p=ceph.git 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) --- 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,