Project

General

Profile

Bug #40151 » influx-version-check-before-close.patch

Soenke Schippmann, 06/04/2019 02:09 PM

View differences:

module.py 2019-06-04 15:42:30.663810114 +0200
import errno
import six
import time
from distutils.version import StrictVersion
from mgr_module import MgrModule
try:
import influxdb
from influxdb import InfluxDBClient
from influxdb.exceptions import InfluxDBClientError
from requests.exceptions import RequestException
......
replication='1',
default=True,
database=self.config['database'])
client.close()
if StrictVersion(influxdb.__version__) >= StrictVersion("5.0.0"):
client.close()
self.log.debug('Gathering statistics')
points = self.gather_statistics()
(1-1/2)