Actually don't set state when receiving migrate

This commit is contained in:
Joshua Boniface 2018-06-18 00:53:19 -04:00
parent e1d550b437
commit 10c72abbac
1 changed files with 0 additions and 2 deletions

View File

@ -259,10 +259,8 @@ class VMInstance:
if not self.domuuid in self.thishypervisor.domain_list:
self.thishypervisor.domain_list.append(self.domuuid)
ansiiprint.echo('Successfully received migrated VM', '{}:'.format(self.domuuid), 'o')
self.zk_conn.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii'))
else:
ansiiprint.echo('Failed to receive migrated VM', '{}:'.format(self.domuuid), 'e')
self.zk_conn.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii'))
self.inreceive = False