Implement alternate node target fields

Implements the last additional hypervisor selector fields: vCPUs.

Addresses #11
This commit is contained in:
2018-07-18 12:09:07 -04:00
parent bebd0af0ac
commit ca554cc9f1
3 changed files with 29 additions and 1 deletions

View File

@ -73,6 +73,14 @@ class VMInstance:
return memory
def getvcpus(self):
try:
vcpus = int(self.dom.info()[3])
except:
vcpus = 0
return vcpus
# Manage local node domain_list
def addDomainToList(self):
if not self.domuuid in self.thishypervisor.domain_list: