From 31d04f52cf61d0cc87291515d7a92d2db93b86e2 Mon Sep 17 00:00:00 2001 Message-Id: <31d04f52cf61d0cc87291515d7a92d2db93b86e2@dist-git> From: Pavel Hrdina Date: Mon, 8 Jul 2019 10:44:43 +0200 Subject: [PATCH] guest: fix warning message when machine type is changed for secure boot Introduced by commit <3586d1897>. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1727811 Signed-off-by: Pavel Hrdina (cherry picked from commit 3c6e85375d0cd87dcf8ac70b41db0d899851338e) Signed-off-by: Pavel Hrdina --- virtinst/guest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtinst/guest.py b/virtinst/guest.py index ef227d17..41357644 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -586,7 +586,8 @@ class Guest(XMLBuilder): self.os.loader_secure = True if self.os.machine and "q35" not in self.os.machine: log.warning("Changing machine type from '%s' to 'q35' " - "which is required for UEFI secure boot.") + "which is required for UEFI secure boot.", + self.os.machine) self.os.machine = "q35" def disable_hyperv_for_uefi(self): -- 2.21.0