backups: correctly mark if dom0 is present in the backup
Reset dom0 "backup_content" flag to False, then possibly set it to True.
This commit is contained in:
parent
c5e2ba03bd
commit
c430355a5b
@ -238,10 +238,10 @@ def backup_prepare(vms_list = None, exclude_list = None,
|
||||
# Initialize backup flag on all VMs
|
||||
vms_for_backup_qid = [vm.qid for vm in vms_for_backup]
|
||||
for vm in qvm_collection.values():
|
||||
vm.backup_content = False
|
||||
if vm.qid == 0:
|
||||
# handle dom0 later
|
||||
continue
|
||||
vm.backup_content = False
|
||||
|
||||
if vm.qid in vms_for_backup_qid:
|
||||
vm.backup_content = True
|
||||
|
Loading…
Reference in New Issue
Block a user