]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/influx: avoid casting variable
authorKefu Chai <kchai@redhat.com>
Mon, 22 Feb 2021 06:03:44 +0000 (14:03 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Feb 2021 07:54:12 +0000 (15:54 +0800)
commit6b2b523fba64729c57d9a8497cbee58ee82d204c
tree567914d103de27e4aa54b3f8193086b851be2987
parent6ed5f5104260e20301b7598519cea18b2c91dfca
mgr/influx: avoid casting variable

self.config is a dict with elements of different types, to appease mypy,
we would need to cast the indexed item to the expected type. another way
is to use f-string, so the variable are always printed using `__str__`.

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