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
1 changed files with 3 additions and 1 deletions

View File

@ -512,7 +512,9 @@ class vmmDomainBase(vmmLibvirtObject):
return self._get_guest().clock.offset
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):
return int(self._get_guest().memory * 1024)