]> 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)
committerNeha Ojha <nojha@redhat.com>
Tue, 14 Jul 2020 23:02:17 +0000 (23:02 +0000)
The option needs to be in `secs` type to enable input checking and
type casting.

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
(cherry picked from commit 368c810a4200a57a772b8122fc606a2b36de7413)

src/pybind/mgr/alerts/module.py

index 2567f7ee2f230811f934f7fccef6e317cb81beac..0cb9e6740b31f4838361b3f5898ba0f80188290b 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,