diff options
author | Cole Robinson <crobinso@redhat.com> | 2019-11-12 14:11:53 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-11-12 14:20:36 -0500 |
commit | fb2bfd610f886e12d2e644b3ccf47539a76a7ff5 (patch) | |
tree | 8c0f2115a3ff3462d18c85e01864450ed25082ad /virtManager | |
parent | 5d9123738620ac32b7f66bca385ca24fbf87ed05 (diff) | |
download | virt-manager-fb2bfd610f886e12d2e644b3ccf47539a76a7ff5.tar.gz |
details: Use Guest.lookup_domcaps helper
This ensures the Guest object domcaps cache is primed as well, which
prevents the CPU security features handling from constantly refetching
domcaps info.
We need to tweak the cache invalidation check in Guest to handle
some of the test suite hackery we do
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtManager')
-rw-r--r-- | virtManager/object/domain.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py index f61f0f53..272c96b4 100644 --- a/virtManager/object/domain.py +++ b/virtManager/object/domain.py @@ -12,7 +12,6 @@ import libvirt from virtinst import DeviceController from virtinst import DeviceDisk -from virtinst import DomainCapabilities from virtinst import DomainSnapshot from virtinst import Guest from virtinst import log @@ -311,8 +310,7 @@ class vmmDomain(vmmLibvirtObject): def get_domain_capabilities(self): if not self._domain_caps: - self._domain_caps = DomainCapabilities.build_from_guest( - self.get_xmlobj()) + self._domain_caps = self.get_xmlobj().lookup_domcaps() return self._domain_caps |