added ssl/verify_ssl for influx as options

This commit is contained in:
Nicholas St. Germain 2019-01-11 23:27:06 -06:00
parent 989e7f0e44
commit 3d0f4b275f
4 changed files with 12 additions and 5 deletions

View file

@ -5,8 +5,9 @@ from influxdb import InfluxDBClient
class DBManager(object):
def __init__(self, server):
self.server = server
self.influx = InfluxDBClient(self.server.url, self.server.port, self.server.username, self.server.password,
'varken')
self.influx = InfluxDBClient(host=self.server.url, port=self.server.port, username=self.server.username,
password=self.server.password, ssl=self.server.ssl, database='varken',
verify_ssl=self.server.verify_ssl)
databases = [db['name'] for db in self.influx.get_list_database()]
self.logger = getLogger()