From e3b1cf80af790667f091145c114ffeb43a1fef2d Mon Sep 17 00:00:00 2001 From: Piotr Bartman-Szwarc Date: Tue, 20 Aug 2024 22:42:22 +0200 Subject: [PATCH] q-dev: print warning for flags --port and --device --- qubesadmin/tools/qvm_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesadmin/tools/qvm_device.py b/qubesadmin/tools/qvm_device.py index 628df3d0..62f52f7e 100644 --- a/qubesadmin/tools/qvm_device.py +++ b/qubesadmin/tools/qvm_device.py @@ -236,7 +236,7 @@ def assign_device(args): vm.devices[args.devclass].assign(assignment) # retrieve current port info assignment = DeviceAssignment(args.device, mode=mode, options=options) - if is_on_deny_list(device, vm) and not args.quiet: + if is_on_deny_list(args.device, vm) and not args.quiet: print("Attention: The assigned device is on the denied list: " f"{DEVICE_DENY_LIST}\n Auto-attach will work, " f"but make sure that the assignment is correct.")