check any pending vm operation on start
This commit is contained in:
parent
b021d63a3e
commit
b9348394f1
1 changed files with 60 additions and 61 deletions
5
main.py
5
main.py
|
@ -212,9 +212,8 @@ def main():
|
||||||
|
|
||||||
atexit.register(goodbye, host=host)
|
atexit.register(goodbye, host=host)
|
||||||
|
|
||||||
events = client.watch_prefix("/v1/vm/", timeout=10)
|
for events_iterator in [client.get_prefix("/v1/vm/"),
|
||||||
|
client.watch_prefix("/v1/vm/", timeout=10)]:
|
||||||
# events = client.get_prefix("/v1/vm/")
|
|
||||||
for e in events:
|
for e in events:
|
||||||
try:
|
try:
|
||||||
e.value = json.loads(e.value)
|
e.value = json.loads(e.value)
|
||||||
|
|
Loading…
Reference in a new issue