]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/influx: use get_module_option() for typed option
authorKefu Chai <kchai@redhat.com>
Mon, 22 Feb 2021 05:57:55 +0000 (13:57 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Feb 2021 07:54:12 +0000 (15:54 +0800)
commit6ed5f5104260e20301b7598519cea18b2c91dfca
tree1ad74760735004df3715b4f085c54a4f60af67bc
parente457ca50011f70cf01a62323998af233a484f338
mgr/influx: use get_module_option() for typed option

get_module_option() cast the option to the type claimed in its defition,
also, the returned value are always validated before it is originally
set. so there is no need to repeat this in mgr module.

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