Skip to content

Commit

Permalink
q-dev: warn user if assign device against deny list
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Oct 14, 2024
1 parent bb2d34b commit 421935e
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 @@ -238,7 +238,8 @@ def assign_device(args):
assignment = DeviceAssignment(args.device, mode=mode, options=options)
if is_on_deny_list(device, vm) and not args.quiet:
print("Attention: The assigned device is on the denied list: "
f"{DEVICE_DENY_LIST}\n Ensure that this assignment is correct.")
f"{DEVICE_DENY_LIST}\n Auto-attach will work, "
f"but make sure that the assignment is correct.")
if vm.is_running() and not assignment.attached and not args.quiet:
print("Assigned. To attach you can now restart domain or run: \n"
f"\tqvm-{assignment.devclass} attach {vm} "
Expand Down

0 comments on commit 421935e

Please sign in to comment.