From: Kiefer Chang Date: Thu, 19 Dec 2019 00:35:01 +0000 (+0800) Subject: mgr/alerts: fix type of interval option X-Git-Tag: v15.1.0~378^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=368c810a4200a57a772b8122fc606a2b36de7413;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 --- diff --git a/src/pybind/mgr/alerts/module.py b/src/pybind/mgr/alerts/module.py index 5962e3018500..d3098e1a3ef9 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,