From ceeae705c2639b7a6a7f106c59fff2f66ad06503 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 16 Feb 2022 14:05:51 -0500 Subject: guest: Use is_q35 helper in UEFI secboot check Signed-off-by: Cole Robinson --- virtinst/guest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtinst/guest.py b/virtinst/guest.py index 350de6dd..6f16af49 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -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) -- cgit v1.2.1