From 7a40fbb8c8733b44ace33ac0992f5aea21fde441 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 17 Jul 2022 21:54:39 +0200 Subject: [PATCH] Support an optional v prefix for influxdb version strings (cherry picked from commit 052be06e45636b0af019902b858cd322b269e509) --- varken/dbmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varken/dbmanager.py b/varken/dbmanager.py index 72986b40..8250ce3c 100644 --- a/varken/dbmanager.py +++ b/varken/dbmanager.py @@ -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)