Update 'app.py'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kocsis Richárd 2020-04-17 16:36:53 +02:00
parent 9d94dbd6d6
commit aed27cba95

2
app.py
View File

@ -78,8 +78,10 @@ def main():
# wait for the next update time
if current_ip != socket.gethostbyname(host_name):
logging.debug('Check ip : Done')
current_ip = socket.gethostbyname(host_name)
keys = redis.keys('producer_*')
logging.debug('Get producer list from redis: Done')
for key in keys:
ip = redis.get(key)
if not ip: