Skip to content

Commit

Permalink
Include influxdb username/password for v2 server support
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinnerbone committed Jul 17, 2022
1 parent 1e71ec5 commit aa9f259
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions varken/dbmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def __init__(self, server):
exit(1)

if self.version >= 2:
# If we pass username/password to a v1 server, it breaks :(
self.influx = InfluxDBClient(url=url, username=self.server.username,
password=self.server.password,
verify_ssl=self.server.verify_ssl, org=self.server.org)
self.create_v2_bucket()
else:
self.create_v1_database()
Expand Down

0 comments on commit aa9f259

Please sign in to comment.