[XEND] Fix pygrub when run server-side on a domain with blktap disks.

Equivalent fix to xen-unstable 11706:bf0deb09facd847db87ab59ed377db6eb0f5a3ad.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-10-28 17:45:43 +01:00
1 parent 83e445d75e
commit 56906a3ab2
1 file changed
+1 -1
+1 -1
View File
@@ -1440,7 +1440,7 @@ class XendDomainInfo:
blcfg = None
# FIXME: this assumes that we want to use the first disk device
for (n, c) in self.info.all_devices_sxpr():
if not n or not c or n != "vbd":
if not n or not c or not(n in ["vbd", "tap"]):
continue
disk = sxp.child_value(c, "uname")
if disk is None:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.