]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/prometheus: add assert to appease mypy
authorKefu Chai <kchai@redhat.com>
Tue, 19 Jan 2021 17:28:20 +0000 (01:28 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 26 Jan 2021 10:02:24 +0000 (18:02 +0800)
commit3ca955c4d5f55c9c15797199b991dd0e81095386
tree8541f89768f18f5af2b5367914ebddb5413ff61e
parent2a5a50f3bace6b853fe2feff85a641ade91825e1
pybind/mgr/prometheus: add assert to appease mypy

self.get_osd_perf_counters() might return None, add assert() to assure
mypy that it does not return None here.

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