summaryrefslogtreecommitdiff
path: root/virtinst/guest.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2022-02-16 14:05:51 -0500
committerCole Robinson <crobinso@redhat.com>2022-02-16 14:06:13 -0500
commitceeae705c2639b7a6a7f106c59fff2f66ad06503 (patch)
tree76df9e2e22dcf7b9ee1dbffca58e0f1147f5d2f4 /virtinst/guest.py
parent0c2cb364759ce2e2e64d68baee8d7cec0eb5ca2d (diff)
downloadvirt-manager-ceeae705c2639b7a6a7f106c59fff2f66ad06503.tar.gz
guest: Use is_q35 helper in UEFI secboot check
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtinst/guest.py')
-rw-r--r--virtinst/guest.py2
1 files changed, 1 insertions, 1 deletions
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)