Skip to content

Commit

Permalink
Update nut-influxdbv2-exporter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dbsqp authored Sep 16, 2022
1 parent 104f044 commit 07640ab
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nut-influxdbv2-exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,15 @@
print ( "influx: "+influxdb2_url )
print ( "bucket: "+influxdb2_bucket )

client = InfluxDBClient(url=influxdb2_url, token=influxdb2_token, org=influxdb2_org, verify_ssl=influxdb2_ssl_verify)

if influxdb2_ssl_verify:
if debug:
print ( "verify: True" )
client = InfluxDBClient(url=influxdb2_url, token=influxdb2_token, org=influxdb2_org, verify_ssl=True)
else:
if debug:
print ( "verify: False" )
client = InfluxDBClient(url=influxdb2_url, token=influxdb2_token, org=influxdb2_org, verify_ssl=False)

if client and debug:
print("influx: online")

Expand Down

0 comments on commit 07640ab

Please sign in to comment.