Skip to content

Commit

Permalink
q-dev: do not load device if device_id does not match
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Oct 15, 2024
1 parent c91295e commit 1999c2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qubes/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1999c2f

Please sign in to comment.