Merge remote-tracking branch 'qubesos/pr/24'

* qubesos/pr/24:
  Fixed https://github.com/QubesOS/qubes-issues/issues/2983
This commit is contained in:
Marek Marczykowski-Górecki 2017-09-04 03:02:49 +02:00
commit 533fccfc10
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

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