backups: fix backup of selected appmenus for VM

This wasn't working for a long time...
This commit is contained in:
Marek Marczykowski-Górecki 2013-11-27 03:18:14 +01:00
parent 2d68b79bff
commit 8bdea5b0ab

View File

@ -138,8 +138,9 @@ def backup_prepare(vms_list = None, exclude_list = [], print_callback = print_st
if os.path.exists (vm.firewall_conf):
files_to_backup += file_to_backup(vm.firewall_conf)
if 'appmenus_whitelist' in vm_files and \
os.path.exists(vm.dir_path + vm_files['appmenus_whitelist']):
files_to_backup += file_to_backup(vm.dir_path + vm_files['appmenus_whitelist'])
os.path.exists(os.path.join(vm.dir_path, vm_files['appmenus_whitelist'])):
files_to_backup += file_to_backup(
os.path.join(vm.dir_path, vm_files['appmenus_whitelist']))
if vm.updateable:
sz = vm.get_disk_usage(vm.root_img)