qubes/core2migration: fix vm.template handling

VM constructor can't be given just template QID, it must be TemplateVM
object.
This commit is contained in:
Marek Marczykowski-Górecki 2016-08-09 02:57:23 +02:00
parent 067cfb7cd6
commit 5177f5e12b
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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',