From 6df309351dc17695864cb36da450096938c964c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 13 Jul 2015 00:58:11 +0200 Subject: [PATCH] block: fix detection if the block device is attached anywhere --- core/qubesutils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/qubesutils.py b/core/qubesutils.py index aba05a3c..b0da7a7c 100644 --- a/core/qubesutils.py +++ b/core/qubesutils.py @@ -355,9 +355,8 @@ def block_check_attached(qvmc, device): disks = parsed_xml.xpath("//domain/devices/disk") for disk in disks: backend_name = 'dom0' - # FIXME: move into - if disk.find('domain') is not None: - backend_name = disk.find('domain').get('name') + if disk.find('backenddomain') is not None: + backend_name = disk.find('backenddomain').get('name') source = disk.find('source') if disk.get('type') == 'file': path = source.get('file')