Skip to content

Commit

Permalink
q-dev: fix check if device is attached after assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Oct 14, 2024
1 parent 5fc60a7 commit 3454222
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qubesadmin/tools/qvm_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ def assign_device(args):
assignment = DeviceAssignment(device, mode=mode, options=options)
vm.devices[args.devclass].assign(assignment)
# retrieve current port info
assignment = DeviceAssignment(args.device, mode=mode, options=options)
assignment = DeviceAssignment(args.device, mode=mode, options=options,
frontend_domain=vm)
if is_on_deny_list(args.device, vm) and not args.quiet:
print("Warning: The assigned device is on the denied list: "
f"{DEVICE_DENY_LIST}\n Auto-attach will work, "
Expand Down

0 comments on commit 3454222

Please sign in to comment.