From 1c23bc2a4ed0f6785c6bafcf5f0c638c0fe35e91 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sun, 5 Apr 2020 19:00:23 -0400 Subject: [PATCH] fix rogue else --- example.json => collector.json | 0 collector/__init__.py | 5 ++--- 2 files changed, 2 insertions(+), 3 deletions(-) rename example.json => collector.json (100%) diff --git a/example.json b/collector.json similarity index 100% rename from example.json rename to collector.json diff --git a/collector/__init__.py b/collector/__init__.py index c08abb5..f27d954 100644 --- a/collector/__init__.py +++ b/collector/__init__.py @@ -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: