]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/zabbix: use "uint" for type of discovery_interval
authorKefu Chai <kchai@redhat.com>
Wed, 27 Jan 2021 04:31:13 +0000 (12:31 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 27 Jan 2021 11:22:05 +0000 (19:22 +0800)
we only support following types:

'uint', 'int', 'str', 'float', 'bool', 'addr', 'addrvec', 'uuid',
'size', 'secs',

see also str_to_type()

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/zabbix/module.py

index 1d55789f678d00326be0d194f4fafd1d994f00cd..37f8b9ba39e8d064ef59db615b8401fcea50c6ee 100644 (file)
@@ -83,7 +83,7 @@ class Module(MgrModule):
             default=60),
         Option(
             name='discovery_interval',
-            type='count',
+            type='uint',
             default=100)
     ]