dom0/qvm-backup-restore: fix restore of StandaloneVM/TemplateVM
This commit is contained in:
parent
c99965ff5c
commit
eb64d76115
@ -616,7 +616,7 @@ def backup_restore_prepare(backup_dir, options = {}, host_collection = None):
|
|||||||
vms_to_restore[vm.name]['already-exists'] = True
|
vms_to_restore[vm.name]['already-exists'] = True
|
||||||
vms_to_restore[vm.name]['good-to-go'] = False
|
vms_to_restore[vm.name]['good-to-go'] = False
|
||||||
|
|
||||||
if vm.template_vm is not None:
|
if vm.template_vm is None:
|
||||||
vms_to_restore[vm.name]['template'] = None
|
vms_to_restore[vm.name]['template'] = None
|
||||||
else:
|
else:
|
||||||
templatevm_name = find_template_name(vm.template_vm.name, options['replace-template'])
|
templatevm_name = find_template_name(vm.template_vm.name, options['replace-template'])
|
||||||
|
Loading…
Reference in New Issue
Block a user