tools/qvm-backup-restore: fix restoring only specific VMs

Related to QubesOS/qubes-issues#2924
This commit is contained in:
Marek Marczykowski-Górecki 2017-07-20 14:13:33 +02:00
parent c50fc21e44
commit ea47701fe6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -241,8 +241,8 @@ def main(args=None, app=None):
parser.error_runtime(str(e))
if args.vms:
backup.options.exclude += [vm for vm in restore_info
if vm not in args.vms]
backup.options.exclude += [vm.name for vm in restore_info.values()
if vm.name not in args.vms]
restore_info = backup.restore_info_verify(restore_info)
print(backup.get_restore_summary(restore_info))