guest: Use is_q35 helper in UEFI secboot check

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2022-02-16 14:05:51 -05:00
parent 0c2cb36475
commit ceeae705c2

View File

@ -543,7 +543,7 @@ class Guest(XMLBuilder):
"secboot" in self.os.loader):
self.features.smm = True
self.os.loader_secure = True
if self.os.machine and "q35" not in self.os.machine:
if not self.os.is_q35():
log.warning("Changing machine type from '%s' to 'q35' "
"which is required for UEFI secure boot.",
self.os.machine)