Have to do it on the sending size

This commit is contained in:
Joshua Boniface 2018-06-11 13:13:18 -04:00
parent fdea02b888
commit 39dce1cd93
1 changed files with 2 additions and 1 deletions

View File

@ -194,6 +194,7 @@ class VMInstance:
time.sleep(1)
self.zk.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii'))
else:
self.zk.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii'))
try:
self.thishypervisor.domain_list.remove(self.domuuid)
except ValueError:
@ -206,7 +207,7 @@ class VMInstance:
ansiiprint.echo('Receiving migration', '{}:'.format(self.domuuid), 'i')
self.inreceive = True
while True:
time.sleep(0.2)
time.sleep(0.5)
self.state = self.zk.get('/domains/{}/state'.format(self.domuuid))[0].decode('ascii')
self.dom = self.lookupByUUID(self.domuuid)
print(self.state)