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:
parent
067cfb7cd6
commit
5177f5e12b
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user