From ef1acc018845c65918637ab9b15dcd0844f2dfec Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 2 Jun 2018 14:50:26 -0400 Subject: [PATCH] Fix bug with lookup of uuid --- NodeInstance.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index df66011a..a361d958 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -94,8 +94,9 @@ class NodeInstance(threading.Thread): # Make sure that the VMs we think we're running actually are for domain in self.domain_list: try: - dom = conn.getDomainByUUID(domain) - state = dom.state() + buuid = uuid.UUID(domain).bytes + dom = conn.lookupByUUID(buuid) + state = dom.state()[0] if state != libvirt.VIR_DOMAIN_RUNNING: self.domain_list.remove(domain) except: