This commit is contained in:
parent
e0c4d68da5
commit
1e8e3bd86c
@ -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)
|
||||
|
Reference in New Issue
Block a user