backups: fix trailing slashes for anonymized vm dirnames

This commit is contained in:
Olivier MEDOC 2013-12-10 15:05:03 +01:00 committed by Marek Marczykowski-Górecki
parent 85bb2c47f1
commit 3fcfbbac22

View File

@ -124,7 +124,7 @@ def backup_prepare(vms_list = None, exclude_list = [],
continue
if hide_vm_names:
subdir = 'vm%d' % vm.qid
subdir = 'vm%d/' % vm.qid
else:
subdir = None
@ -179,7 +179,7 @@ def backup_prepare(vms_list = None, exclude_list = [],
continue
vm_sz = vm.get_disk_utilization()
if hide_vm_names:
template_subdir = 'vm%d' % vm.qid
template_subdir = 'vm%d/' % vm.qid
else:
template_subdir = os.path.relpath(
vm.dir_path,