]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/alerts: fix type of interval option
authorKiefer Chang <kiefer.chang@suse.com>
Thu, 19 Dec 2019 00:35:01 +0000 (08:35 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Thu, 19 Dec 2019 00:37:36 +0000 (08:37 +0800)
The option needs to be in `secs` type to enable input checking and
type casting.

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
src/pybind/mgr/alerts/module.py

index 5962e3018500d45a5990843ab5241d4f48a02af5..d3098e1a3ef9d2d38698403e9ae6bf8a90946344 100644 (file)
@@ -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,