check any pending vm scheduling on start
This commit is contained in:
parent
f078b9b245
commit
eb015de8f1
1 changed files with 26 additions and 26 deletions
4
main.py
4
main.py
|
|
@ -144,8 +144,8 @@ def main(vm_prefix, host_prefix):
|
|||
host=config("ETCD_HOST"), port=int(config("ETCD_PORT"))
|
||||
)
|
||||
|
||||
events_iterator = client.watch_prefix(vm_prefix, timeout=10)
|
||||
|
||||
for events_iterator in [client.get_prefix(vm_prefix),
|
||||
client.watch_prefix(vm_prefix, timeout=10)]:
|
||||
for e in events_iterator:
|
||||
try:
|
||||
e.value = json.loads(e.value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue