Add back in the wait to avoid floods on stderr

This commit is contained in:
Joshua Boniface 2018-06-11 22:47:53 -04:00
parent f3153a15b3
commit 48a5a44db4
1 changed files with 1 additions and 0 deletions

View File

@ -194,6 +194,7 @@ class VMInstance:
self.inreceive = True self.inreceive = True
ansiiprint.echo('Receiving migration', '{}:'.format(self.domuuid), 'i') ansiiprint.echo('Receiving migration', '{}:'.format(self.domuuid), 'i')
while True: while True:
time.sleep(0.5)
self.state = self.zk.get('/domains/{}/state'.format(self.domuuid))[0].decode('ascii') self.state = self.zk.get('/domains/{}/state'.format(self.domuuid))[0].decode('ascii')
self.dom = self.lookupByUUID(self.domuuid) self.dom = self.lookupByUUID(self.domuuid)