From 39f49219dc309e305aa110f5c27d9ace99ee80ef Mon Sep 17 00:00:00 2001 From: dbsqp <5895806+dbsqp@users.noreply.github.com> Date: Sun, 18 Apr 2021 21:51:17 +0200 Subject: [PATCH] Update nut-influxdbv2-exporter.py --- nut-influxdbv2-exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nut-influxdbv2-exporter.py b/nut-influxdbv2-exporter.py index ef72946..02a5738 100644 --- a/nut-influxdbv2-exporter.py +++ b/nut-influxdbv2-exporter.py @@ -105,7 +105,7 @@ def construct_object(data, remove_keys, host): w = v.split("FW:", 2) if v == "InternalBattery-0": tags["model"]="InternalBattery" - else + else: tags["model"]=w[0].strip() else: if k in remove_keys: