mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-10 01:18:03 +03:00
guest: Check coverage for more of domcaps caching
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
92ba8e5d35
commit
aeffa4f711
@ -627,7 +627,7 @@ class Guest(XMLBuilder):
|
||||
return False
|
||||
|
||||
# We need to regenerate domcaps cache if any of these values change
|
||||
def _compare(domcaps): # pragma: no cover
|
||||
def _compare(domcaps):
|
||||
if self.type == "test":
|
||||
# Test driver doesn't support domcaps. We kinda fake it in
|
||||
# some cases, but it screws up the checking here for parsed XML
|
||||
@ -637,7 +637,7 @@ class Guest(XMLBuilder):
|
||||
if self.type and self.type != domcaps.domain:
|
||||
return False
|
||||
if self.os.arch and self.os.arch != domcaps.arch:
|
||||
return False
|
||||
return False # pragma: no cover
|
||||
if self.emulator and self.emulator != domcaps.path:
|
||||
return False
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user