From b9e9c7252c0edcda951da2685a6789abed8c98d3 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Fri, 1 Oct 2021 13:46:47 +0200
Subject: [PATCH] pep8
---
brian_polling_manager/eumetsat_multicast.py | 1 +
brian_polling_manager/inventory.py | 1 +
brian_polling_manager/main.py | 2 +-
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/brian_polling_manager/eumetsat_multicast.py b/brian_polling_manager/eumetsat_multicast.py
index d4ed0c5..4bfdf49 100644
--- a/brian_polling_manager/eumetsat_multicast.py
+++ b/brian_polling_manager/eumetsat_multicast.py
@@ -2,6 +2,7 @@ from brian_polling_manager import sensu
_CHECK_PREFIX = 'eumetmc'
+
def load_eumetsat_multicast_checks(sensu_params):
def _is_eumetsat_multicast_check(check):
name = check['metadata']['name']
diff --git a/brian_polling_manager/inventory.py b/brian_polling_manager/inventory.py
index 7204373..4b4594d 100644
--- a/brian_polling_manager/inventory.py
+++ b/brian_polling_manager/inventory.py
@@ -117,6 +117,7 @@ MULTICAST_SUBSCRIPTION_LIST_SCHEMA = {
'items': {'$ref': '#/definitions/subscription'}
}
+
def _pick_one(haystack):
if not isinstance(haystack, (list, tuple, set)):
haystack = [haystack]
diff --git a/brian_polling_manager/main.py b/brian_polling_manager/main.py
index ab64d50..90ba9f9 100644
--- a/brian_polling_manager/main.py
+++ b/brian_polling_manager/main.py
@@ -88,7 +88,7 @@ def refresh(config, force=False):
config['inventory'])
state.eumetsat_multicast \
= inventory.load_eumetsat_multicast_subscriptions(
- config['inventory'])
+ config['inventory'])
result = {
'interfaces': interfaces.refresh(config['sensu'], state.interfaces),
'gws_direct': gws_direct.refresh(config['sensu'], state.gws_direct),
--
GitLab