backups: fix trailing slashes for anonymized vm dirnames
This commit is contained in:
parent
85bb2c47f1
commit
3fcfbbac22
@ -124,7 +124,7 @@ def backup_prepare(vms_list = None, exclude_list = [],
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if hide_vm_names:
|
if hide_vm_names:
|
||||||
subdir = 'vm%d' % vm.qid
|
subdir = 'vm%d/' % vm.qid
|
||||||
else:
|
else:
|
||||||
subdir = None
|
subdir = None
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ def backup_prepare(vms_list = None, exclude_list = [],
|
|||||||
continue
|
continue
|
||||||
vm_sz = vm.get_disk_utilization()
|
vm_sz = vm.get_disk_utilization()
|
||||||
if hide_vm_names:
|
if hide_vm_names:
|
||||||
template_subdir = 'vm%d' % vm.qid
|
template_subdir = 'vm%d/' % vm.qid
|
||||||
else:
|
else:
|
||||||
template_subdir = os.path.relpath(
|
template_subdir = os.path.relpath(
|
||||||
vm.dir_path,
|
vm.dir_path,
|
||||||
|
Loading…
Reference in New Issue
Block a user