From c7600e9396a5fd1de6235c64967fea07a7eb0253 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 2 Jun 2018 00:50:57 -0400 Subject: [PATCH] Typo --- VMInstance.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/VMInstance.py b/VMInstance.py index 74f5f96f..41133538 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -35,14 +35,8 @@ class VMInstance: try: dom = conn.createXML(xmlconfig, 0) except: - dom = None print('Failed to create domain %s' % self.domuuid) - - if dom == None: - try: - self.zk.set(self.zkey + '/status', 'stop'.encode('ascii')) - except Error as e: - print("Problem %s with zookeeper con %s" % (e, self.zk)) + self.zk.set(self.zkey + '/state', 'stop'.encode('ascii')) return None if not self.domuuid in self.thishypervisor.domain_list: