Skip to content

Commit

Permalink
strip model name
Browse files Browse the repository at this point in the history
  • Loading branch information
dbsqp authored Apr 12, 2021
1 parent a966800 commit e8c3a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nut-influxdbv2-exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def construct_object(data, remove_keys, host):
if k == "ups.serial":
tags["hardware"]=':'.join(v[i:i+2] for i in range(0,12,2))
elif k == "device.model":
tags["model"]=v
tags["model"]=v.strip()
else:
if k in remove_keys:
continue
Expand Down

0 comments on commit e8c3a09

Please sign in to comment.