tools/qvm-backup-restore: fix restoring only specific VMs
Related to QubesOS/qubes-issues#2924
This commit is contained in:
parent
c50fc21e44
commit
ea47701fe6
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user