Fix dom0 handling

This commit is contained in:
Christopher Laprise 2018-02-01 19:40:42 -05:00
parent 4b46d59179
commit 60bfd63a25
No known key found for this signature in database
GPG Key ID: 448568C8B281C952

View File

@ -256,6 +256,9 @@ class Core2Qubes(qubesadmin.backup.BackupApp):
kwargs = {}
if vm_class_name in ["QubesTemplateVm", "QubesTemplateHVm"]:
vm.klass = "TemplateVM"
elif element.get('qid') == '0':
kwargs['dir_path'] = element.get('dir_path')
vm.klass = "AdminVM"
elif element.get('template_qid').lower() == "none":
kwargs['dir_path'] = element.get('dir_path')
vm.klass = "StandaloneVM"
@ -364,7 +367,7 @@ class Core2Qubes(qubesadmin.backup.BackupApp):
if 0 not in self.qid_map:
vm = Core2VM()
vm.name = 'dom0'
vm.klass = 'AdminVm'
vm.klass = 'AdminVM'
vm.label = 'black'
self.domains['dom0'] = vm
self.qid_map[0] = 'dom0'