fixed events->events_iterator

This commit is contained in:
ahmadbilalkhalid 2019-07-20 15:07:12 +05:00
parent b9348394f1
commit aaa733d16f

View file

@ -214,7 +214,7 @@ def main():
for events_iterator in [client.get_prefix("/v1/vm/"), for events_iterator in [client.get_prefix("/v1/vm/"),
client.watch_prefix("/v1/vm/", timeout=10)]: client.watch_prefix("/v1/vm/", timeout=10)]:
for e in events: for e in events_iterator:
try: try:
e.value = json.loads(e.value) e.value = json.loads(e.value)
except json.JSONDecodeError: except json.JSONDecodeError: