aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2007-12-20 13:48:27 +0000
committerKeir Fraser <keir.fraser@citrix.com>2007-12-20 13:48:27 +0000
commit1f7f827c82afaff5071d612bf05a3408d5d7f10c (patch)
tree5e9b0acd4990738c3d50962e8d0f2560825c5fd1
parent53f48ca221dd5ee65297fdce42ff52aecdc03cde (diff)
downloadxen-1f7f827c82afaff5071d612bf05a3408d5d7f10c.tar.gz
xen-1f7f827c82afaff5071d612bf05a3408d5d7f10c.tar.bz2
xen-1f7f827c82afaff5071d612bf05a3408d5d7f10c.zip
Xend: don't check for device reuse if the device has no uname.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
-rw-r--r--tools/python/xen/xend/XendConfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py
index 2ca65a525c..0e970b6293 100644
--- a/tools/python/xen/xend/XendConfig.py
+++ b/tools/python/xen/xend/XendConfig.py
@@ -985,7 +985,7 @@ class XendConfig(dict):
dev_uname = dev_info.get('uname')
blkdev_name = dev_info.get('dev')
devid = self._blkdev_name_to_number(blkdev_name)
- if devid == None:
+ if devid == None or dev_uname == None:
return
for o_dev_type, o_dev_info in defined_devices_sxpr: