Fix ordering in command line backup tool

This commit is contained in:
unman 2017-01-05 23:02:38 +00:00
parent 1025625772
commit 68586681fc
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -175,7 +175,7 @@ def backup_prepare(vms_list=None, exclude_list=None,
print_callback(s)
files_to_backup_index = 0
for vm in vms_for_backup:
for vm in sorted(vms_for_backup, key=lambda vm: vm.name):
if vm.is_template():
# handle templates later
continue