From 1e8e3bd86c14af30f656c00bf99372a5a3af5db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 1 Apr 2020 02:20:39 +0200 Subject: [PATCH] consumers :) --- communicator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/communicator.py b/communicator.py index 7e0f42e..8ca528e 100644 --- a/communicator.py +++ b/communicator.py @@ -46,7 +46,7 @@ class Communicator: """ try: currentconsumer = self.currenctconsumer - response = requests.get(f'http://{currentconsumer}/consumer') + response = requests.get(f'http://{currentconsumer}/consumers') json = response.json() LOGGER.info(f"List of currently available consumers: {json}") return json @@ -61,7 +61,7 @@ class Communicator: """ currentconsumer = self.currenctconsumer try: - response = requests.get(f'http://{currentconsumer}/consumer') + response = requests.get(f'http://{currentconsumer}/consumers') isavailable = response.status_code == 200 except Exception as e: LOGGER.exception(e) @@ -76,7 +76,7 @@ class Communicator: :return: """ try: - response = requests.get(f'http://{consumer}/consumer') + response = requests.get(f'http://{consumer}/consumers') isavailable = response.status_code == 200 except Exception as e: LOGGER.exception(e)