From 51843cf911959d52a5cf569b35d9f564377e1632 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 13 Jun 2018 12:55:07 -0400 Subject: [PATCH] Set state back to start after restart --- VMInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VMInstance.py b/VMInstance.py index 685dd9e3..218302d3 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -107,8 +107,8 @@ class VMInstance: ansiiprint.echo('Successfully restarted VM', '{}:'.format(self.domuuid), 'o') except libvirt.libvirtError as e: ansiiprint.echo('Failed to restart VM', '{}:'.format(self.domuuid), 'e') - self.zk.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii')) + self.zk.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii')) conn.close() self.inrestart = False