From 1999c2f853eb59e390b8d9234f14316f69f3dbef Mon Sep 17 00:00:00 2001 From: Piotr Bartman-Szwarc Date: Wed, 25 Sep 2024 16:16:47 +0200 Subject: [PATCH] q-dev: do not load device if device_id does not match --- qubes/api/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/api/admin.py b/qubes/api/admin.py index 5862ec06d..bde2c459e 100644 --- a/qubes/api/admin.py +++ b/qubes/api/admin.py @@ -1335,6 +1335,8 @@ def load_device_info(self, devclass) -> VirtualDevice: _dev.backend_domain].devices[devclass][_dev.port_id] if isinstance(dev, UnknownDevice): return _dev + if _dev.device_id != '*' and _dev.device_id != dev.device_id: + return _dev return dev except KeyError: return _dev