solve circular dependency
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2020-03-30 17:15:59 +02:00
parent 94edf03cf8
commit 77f01db969
3 changed files with 7 additions and 6 deletions

View File

@@ -20,13 +20,13 @@ class ConsumerLocator:
Manages the list of consumers.
"""
def __init__(self, communicator: Communicator):
def __init__(self, uuid: str):
"""
Initialize class.
"""
self.consumerlist = [{"Host": os.environ["KnownConsumer"], "State": True, "LastOk": datetime.datetime.now()}]
self.currentconsumer = self.consumerlist[0]
self.communicator = communicator
self.communicator = Communicator(consumerlocator=self,uuid=uuid)
def learnconsumerlist(self) -> None:
""""