From 25fd41aa2f7965d6a3652ba4e2e700c6d4e8d272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 19 Nov 2013 18:39:22 +0100 Subject: [PATCH] qvm-tools: do not assume that every template VM must have root-cow.img Especially HVM templates do not have (at least for now). --- qvm-tools/qvm-prefs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qvm-tools/qvm-prefs b/qvm-tools/qvm-prefs index f5c59a38..f21480a1 100755 --- a/qvm-tools/qvm-prefs +++ b/qvm-tools/qvm-prefs @@ -49,7 +49,7 @@ def do_list(vm): print fmt.format ("pcidevs", vm.pcidevs) if vm.template is None: print fmt.format ("root img", vm.root_img) - if vm.is_template(): + if hasattr(vm, "rootcow_img") and vm.rootcow_img is not None: print fmt.format ("root COW img", vm.rootcow_img) if vm.template is not None: print fmt.format ("root img", vm.template.root_img)