fix rogue else

This commit is contained in:
ducoterra
2020-04-05 19:00:23 -04:00
parent 3207ed1508
commit 1c23bc2a4e
2 changed files with 2 additions and 3 deletions

View File

@@ -68,9 +68,8 @@ if "storage" in data_points:
name = item["name"]
path = item["path"]
exclude = item.get("exclude", None)
else:
storage_sender = functools.partial(sender, f"{HOSTNAME}.storage.{name}")
thread(collect_storage, storage_sender, path, exclude = exclude)
storage_sender = functools.partial(sender, f"{HOSTNAME}.storage.{name}")
thread(collect_storage, storage_sender, path, exclude = exclude)
# Check heartbeat
if "heartbeat" in data_points: