Fake <description> hotplug by always showing inactive domain

This commit is contained in:
Cole Robinson 2011-03-15 16:23:15 -04:00
parent 4d35aa2142
commit 2e9c2ff92c

View File

@ -512,7 +512,9 @@ class vmmDomainBase(vmmLibvirtObject):
return self._get_guest().clock.offset return self._get_guest().clock.offset
def get_description(self): def get_description(self):
return self._get_guest().description # Always show the inactive <description>, let's us fake hotplug
# for a field that's strictly metadata
return self._get_guest(inactive=True).description
def get_memory(self): def get_memory(self):
return int(self._get_guest().memory * 1024) return int(self._get_guest().memory * 1024)