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:
Marek Marczykowski-Górecki 2014-03-08 03:46:41 +01:00
parent c5e2ba03bd
commit c430355a5b

View File

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