From 79b5c41abdbde8686856d6918816f43716e3cd1e Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 4 Jun 2018 01:24:11 -0400 Subject: [PATCH] Fix calling name --- NodeInstance.py | 2 +- VMInstance.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index e6421a3b..fdfff40f 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -104,7 +104,7 @@ class NodeInstance(threading.Thread): # Remove any non-running VMs from our list for domain in self.domain_list: - dom = pvcdomf.lookupByUUID(domain) + dom = pvcf.lookupByUUID(domain) if dom == None: self.domain_list.remove(domain) else: diff --git a/VMInstance.py b/VMInstance.py index b5732105..81ff49a1 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -19,7 +19,7 @@ class VMInstance: self.inmigrate = False self.inreceive = False - self.dom = pvcdomf.lookupByUUID(self.domuuid) + self.dom = pvcf.lookupByUUID(self.domuuid) # Watch for changes to the hypervisor field in Zookeeper @zk.DataWatch(self.zkey + '/hypervisor') @@ -150,7 +150,7 @@ class VMInstance: print('>>> %s - Receiving migration' % self.domuuid) self.inreceive = True while True: - self.dom = pvcdomf.lookupByUUID(self.domuuid) + self.dom = pvcf.lookupByUUID(self.domuuid) if self.dom == None: time.sleep(0.2) continue