Skip to content

Commit

Permalink
error
Browse files Browse the repository at this point in the history
  • Loading branch information
dbsqp authored Apr 18, 2021
1 parent f030f77 commit c1b205b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nut-influxdbv2-exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def construct_object(data, remove_keys, host):

for k, v in data.items():
if k == "ups.serial":
if v:
tags["hardware"]=':'.join(v[i:i+2] for i in range(0,12,2))
tags["hardware"]=':'.join(v[i:i+2] for i in range(0,12,2))
elif k == "device.model":
tags["model"]=v.strip()
else:
Expand Down

0 comments on commit c1b205b

Please sign in to comment.