File 072-details-Fix-TPM-label-from-Customize-wizard.patch of Package virt-manager
Subject: details: Fix TPM label from `Customize` wizard
From: Cole Robinson crobinso@redhat.com Tue Feb 24 10:18:32 2026 -0500
Date: Tue Feb 24 11:34:36 2026 -0500:
Git: 20d375a043aacdd83735a2e80034e853da279364
version isn't filled in, so it is formatted as `TPM vNone`. Make
it just `TPM` instead
Signed-off-by: Cole Robinson <crobinso@redhat.com>
diff --git a/virtManager/details/details.py b/virtManager/details/details.py
index c927f1045..6c56ca32a 100644
--- a/virtManager/details/details.py
+++ b/virtManager/details/details.py
@@ -244,7 +244,9 @@ def _label_for_device(dev, disk_bus_index):
if devtype == "tpm":
if dev.device_path:
return _("TPM %(device)s") % {"device": dev.device_path}
- return _("TPM v%(version)s") % {"version": dev.version}
+ if dev.version:
+ return _("TPM v%(version)s") % {"version": dev.version}
+ return _("TPM")
devmap = {
"panic": _("Panic Notifier"),