Add maxmemory to the data for each VMInstance object

This commit is contained in:
2018-07-17 21:40:30 -04:00
parent 7c89fa8aea
commit 2c988430db
2 changed files with 5 additions and 1 deletions

View File

@ -231,7 +231,7 @@ class NodeInstance():
for domain, instance in self.s_domain.items():
if instance.inshutdown == False and domain in self.domain_list:
# Add the allocated memory to our memalloc value
memalloc += instance.maxMemory()
memalloc += instance.getmaxmemory()
if instance.getstate() == 'start' and instance.gethypervisor() == self.name:
if instance.getdom() != None:
try: