From 11ab37b9ffb141b592786464eddc5776b00b0657 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 30 Jun 2012 00:58:06 +0200 Subject: [PATCH] dom0/qvm-block: fix error handling (#614) --- 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 46a5f69a..81d5a222 100644 --- a/dom0/qvm-core/qubesutils.py +++ b/dom0/qvm-core/qubesutils.py @@ -341,7 +341,7 @@ def block_attach(vm, backend_vm, device, frontend=None, mode="w", auto_detach=Fa return elif int(be_state) > 4: # Error - error = xs.read('/local/domain/%d/error/backend/vbd/%d/%d/error' % (backend_vm.xid, vm.xid, block_name_to_devid(frontend))) + error = xs.read('', '/local/domain/%d/error/backend/vbd/%d/%d/error' % (backend_vm.xid, vm.xid, block_name_to_devid(frontend))) if error is None: raise QubesException("Error while connecting block device: " + error) else: