Skip to content

Commit 250afc8

Browse files
committed
q-dev: allow auto-attach of microphone
1 parent 871f3f3 commit 250afc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qubesadmin/devices.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def assign(self, assignment: DeviceAssignment) -> None:
9292
if assignment.devclass == 'pci' and not assignment.required:
9393
raise qubesadmin.exc.QubesValueError(
9494
f"PCI devices cannot be assigned as not required.")
95-
if (assignment.devclass not in ('testclass', 'usb', 'block', 'mic')
95+
if (assignment.devclass not in
96+
('testclass', 'usb', 'block', 'mic', 'pci')
9697
and assignment.attach_automatically):
9798
raise qubesadmin.exc.QubesValueError(
9899
f"{assignment.devclass} devices cannot be assigned "

0 commit comments

Comments
 (0)