Skip to content

Commit

Permalink
q-dev: allow mic auto-attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Oct 14, 2024
1 parent f067f22 commit 469ee24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubesadmin/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def assign(self, assignment: DeviceAssignment) -> None:
if assignment.devclass == 'pci' and not assignment.required:
raise qubesadmin.exc.QubesValueError(
f"PCI devices cannot be assigned as not required.")
if (assignment.devclass not in ('testclass', 'usb', 'block')
if (assignment.devclass not in ('testclass', 'usb', 'block', 'mic')
and assignment.attach_automatically):
raise qubesadmin.exc.QubesValueError(
f"{assignment.devclass} devices cannot be assigned "
Expand Down

0 comments on commit 469ee24

Please sign in to comment.