dom0/qvm-backup: do not fail on VMs without private.img

This commit is contained in:
Marek Marczykowski 2012-03-10 20:57:59 +01:00
parent ac32398e11
commit 7e317dbf9a

View File

@ -385,8 +385,9 @@ def backup_prepare(base_backup_dir, vms_list = None, exclude_list = [], print_ca
# handle templates later
continue
vm_sz = vm.get_disk_usage (vm.private_img)
files_to_backup += file_to_backup(vm.private_img, vm_sz )
if vm.private_img is not None:
vm_sz = vm.get_disk_usage (vm.private_img)
files_to_backup += file_to_backup(vm.private_img, vm_sz )
if vm.is_appvm():
files_to_backup += file_to_backup(vm.icon_path)