Merge testing into master for the docs #4
@ -43,11 +43,14 @@ class Communicator:
|
||||
Get the list of available consumer from the current primary consumer.
|
||||
:return:
|
||||
"""
|
||||
currentconsumer = self.currenctconsumer
|
||||
response = requests.get(f'http://{currentconsumer}/consumer')
|
||||
json = response.json()
|
||||
LOGGER.debug(f"List of currently available consumers: {json}")
|
||||
return json
|
||||
try:
|
||||
currentconsumer = self.currenctconsumer
|
||||
response = requests.get(f'http://{currentconsumer}/consumer')
|
||||
json = response.json()
|
||||
LOGGER.debug(f"List of currently available consumers: {json}")
|
||||
return json
|
||||
except Exception:
|
||||
return []
|
||||
|
||||
def isconsumeravailable(self) -> bool:
|
||||
"""
|
||||
|
Reference in New Issue
Block a user