From 5177f5e12b94a8f5ea01131fc5774f28fc51e63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 9 Aug 2016 02:57:23 +0200 Subject: [PATCH] qubes/core2migration: fix vm.template handling VM constructor can't be given just template QID, it must be TemplateVM object. --- qubes/core2migration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qubes/core2migration.py b/qubes/core2migration.py index 5fa27f77..7ffd4ef8 100644 --- a/qubes/core2migration.py +++ b/qubes/core2migration.py @@ -156,7 +156,8 @@ class Core2Qubes(qubes.Qubes): vm_class = StandaloneVM else: kwargs['dir_path'] = element.get('dir_path') - kwargs['template'] = int(element.get('template_qid')) + kwargs['template'] = self.domains[int(element.get( + 'template_qid'))] vm_class = AppVM # simple attributes for attr in ['installed_by_rpm', 'include_in_backups',