fixed events->events_iterator
This commit is contained in:
parent
b9348394f1
commit
aaa733d16f
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue