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)