Blob Blame Raw
From: Pavel Hrdina <>
Date: Fri, 31 Jul 2015 14:28:00 +0200
Subject: [PATCH virt-manager] details: don't display error if machine is
 missing in XML

Commint 0ddec919 updated the details page.  Now the detail page of
existing domain cannot update the 'machine' value, only prints that
value.  If we cannot get the machine from domain XML, don't pass a None,
but "Unknown" instead.  This can happen if you are connecting with
virt-manager to really old libvirt, the machine value is present in
domain XML since libvirt v0.9.5.


Signed-off-by: Pavel Hrdina <>
(cherry picked from commit f81358b02d58b709529a35268cbaf8ce098d803a)
 virtManager/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtManager/ b/virtManager/
index 718f50a..8507bd0 100644
--- a/virtManager/
+++ b/virtManager/
@@ -2457,7 +2457,7 @@ class vmmDetails(vmmGObjectUI):
         # Machine settings
-        machtype = self.vm.get_machtype()
+        machtype = self.vm.get_machtype() or _("Unknown")
         if self.widget("machine-type").is_visible():
                 self.widget("machine-type"), machtype)