Skip to content

Commit

Permalink
Support an optional v prefix for influxdb version strings
Browse files Browse the repository at this point in the history
(cherry picked from commit 052be06)
  • Loading branch information
Dinnerbone authored and thezak48 committed Apr 14, 2023
1 parent 5728f3c commit 7a40fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion varken/dbmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, server):
try:
version = self.influx.version()
self.logger.info('Influxdb version: %s', version)
match = re.match(r'(\d+)\.', version)
match = re.match(r'v?(\d+)\.', version)
if match:
self.version = int(match[1])
self.logger.info("Using InfluxDB API v%s", self.version)
Expand Down

0 comments on commit 7a40fbb

Please sign in to comment.