Add VM failed state
This commit is contained in:
parent
18de50f395
commit
27dd4b5720
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue