From e5af64f2bf9d9e50e4a0476ce83648e9516f4f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 14 Mar 2016 12:17:02 +0100 Subject: [PATCH] backup: fix restore summary table --- qubes/backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/backup.py b/qubes/backup.py index e2773399..8b01aad6 100644 --- a/qubes/backup.py +++ b/qubes/backup.py @@ -1990,8 +1990,8 @@ class BackupRestore(object): "updbl": {"func": "'Yes' if vm.updateable else ''"}, - "template": {"func": "'n/a' if vm.is_template() or vm.template is None else\ - vm_info['template']"}, + "template": {"func": "'n/a' if not hasattr(vm, 'template') is None " + "else vm_info['template']"}, "netvm": {"func": "'n/a' if vm.is_netvm() and not vm.is_proxyvm() else\ ('*' if vm.property_is_default('netvm') else '') +\