parent
d5e06bfb83
commit
767d1f0074
@ -653,8 +653,11 @@ def usb_detach(qvmc, vm, device):
|
|||||||
# TODO: sanitize and include stdout
|
# TODO: sanitize and include stdout
|
||||||
raise QubesException('Device detach failed')
|
raise QubesException('Device detach failed')
|
||||||
|
|
||||||
def usb_detach_all(vm):
|
def usb_detach_all(qvmc, vm):
|
||||||
raise NotImplementedError("Detaching all devices from a given VM is not implemented yet")
|
for dev in usb_list(qvmc).values():
|
||||||
|
connected_to = dev['connected-to']
|
||||||
|
if connected_to is not None and connected_to.qid == vm.qid:
|
||||||
|
usb_detach(qvmc, connected_to, dev)
|
||||||
|
|
||||||
####### QubesWatch ######
|
####### QubesWatch ######
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user