Merge testing into master for the docs #4

Merged
dscharnitzky merged 6 commits from testing into master 2020-04-07 18:46:52 +02:00
Showing only changes of commit 5a7e1590e9 - Show all commits

View File

@ -43,11 +43,14 @@ class Communicator:
Get the list of available consumer from the current primary consumer. Get the list of available consumer from the current primary consumer.
:return: :return:
""" """
currentconsumer = self.currenctconsumer try:
response = requests.get(f'http://{currentconsumer}/consumer') currentconsumer = self.currenctconsumer
json = response.json() response = requests.get(f'http://{currentconsumer}/consumer')
LOGGER.debug(f"List of currently available consumers: {json}") json = response.json()
return json LOGGER.debug(f"List of currently available consumers: {json}")
return json
except Exception:
return []
def isconsumeravailable(self) -> bool: def isconsumeravailable(self) -> bool:
""" """