Fixes influxdb version check

This commit is contained in:
Matteo Biscosi 2024-07-05 15:43:35 +02:00
parent 20fb08a619
commit ebe71e59ab

View file

@ -2125,7 +2125,12 @@ local function getCqQuery(dbname, tags, schema, source, dest, step, dest_step, r
end
function driver:setup(ts_utils)
local version, err = getInfluxdbVersion(self.url, self.username, self.password)
if version then
isCompatibleVersion(version)
end
local skip = ntop.getCache(INFLUXDB_KEY_SKIP_RETENTION_AND_CREATION)
if isEmptyString(skip) then
skip = false
else