From 3e24eab61edebf157b661ad945660ac7661446ec Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 2 Jun 2018 16:55:48 -0400 Subject: [PATCH] Sleep while waiting --- VMInstance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VMInstance.py b/VMInstance.py index 44e22ba0..5db06982 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -135,6 +135,8 @@ class VMInstance: while True: if self.dom == None or self.dom.state() != libvirt.VIR_DOMAIN_RUNNING: try: + time.sleep(0.2) + print("derp") self.dom = conn.lookupByUUID(uuid.UUID(self.domuuid).bytes) except: pass