Skip to content
Snippets Groups Projects
Unverified Commit 673e01bd authored by PICHOU Kyâne's avatar PICHOU Kyâne
Browse files

Support vmagent that doesn't return x-influxdb-version header

parent 5d402351
No related branches found
No related tags found
1 merge request!2Vmagent
...@@ -71,6 +71,10 @@ def influxb_connect(config): ...@@ -71,6 +71,10 @@ def influxb_connect(config):
) )
client.ping() client.ping()
return client return client
except KeyError as e:
if e.args == ("x-influxdb-version",):
print("Ignoring vmagent missing x-influxdb-version header")
return client
except Exception as e: except Exception as e:
print("Cannot connect to {} : {}".format(o.hostname, e)) print("Cannot connect to {} : {}".format(o.hostname, e))
print("If InfluxDB has just started, this is normal, please wait!") print("If InfluxDB has just started, this is normal, please wait!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment