Add VM failed state

This commit is contained in:
Joshua Boniface 2018-06-14 12:12:42 -04:00
parent 18de50f395
commit 27dd4b5720
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class VMInstance:
self.dom = dom
except libvirt.libvirtError as e:
ansiiprint.echo('Failed to create VM', '{}:'.format(self.domuuid), 'e')
self.zk.set('/domains/{}/state'.format(self.domuuid), 'stop'.encode('ascii'))
self.zk.set('/domains/{}/state'.format(self.domuuid), 'failed'.encode('ascii'))
self.dom = None
conn.close()