]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/influx: try to call close() 29207/head
authorKefu Chai <kchai@redhat.com>
Thu, 6 Jun 2019 09:02:01 +0000 (17:02 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 23 Jul 2019 11:40:03 +0000 (13:40 +0200)
commit445bfffa10cc91995af5df06b9bc8cae4afac9f0
tree76c54c98b36b101446037c06e8baa5f36b388689
parent0e9a0ff18fd97eaf5b310db07633de17e034db38
mgr/influx: try to call close()

let's at least try to call influxclient.close() which in turn closes the
requests.Session

see
https://github.com/influxdata/influxdb-python/blob/v4.1.1/influxdb/client.py
and
https://github.com/influxdata/influxdb-python/blob/v5.0.0/influxdb/client.py

Fixes: http://tracker.ceph.com/issues/40174
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8066a55b324643a40f37243262aa138d959dee91)
src/pybind/mgr/influx/module.py