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 <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2019-07-08 10:44:43 +02:00
parent dbfdc099d8
commit 3c6e85375d
1 changed files with 2 additions and 1 deletions

View File

@ -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):