From 2ee071020b3b369e93bbabc1b381ecaaaf38e5eb Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 31 Mar 2012 19:10:47 +0200 Subject: [PATCH] dom0/qvm-tools: fix auto-detach --- dom0/qvm-core/qubesutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubesutils.py b/dom0/qvm-core/qubesutils.py index f3cdb79b..957d01a2 100644 --- a/dom0/qvm-core/qubesutils.py +++ b/dom0/qvm-core/qubesutils.py @@ -306,7 +306,7 @@ def block_attach(vm, backend_vm, device, frontend=None, mode="w", auto_detach=Fa attached_vm = block_check_attached(backend_vm, device) if attached_vm: if auto_detach: - block_detach(None, attached_vm['devid'], vm_xid=attached_vm['vm_xid']) + block_detach(None, attached_vm['devid'], vm_xid=attached_vm['xid']) else: raise QubesException("Device %s from %s already connected to VM %s as %s" % (device, backend_vm.name, attached_vm['vm'], attached_vm['frontend']))