Xend: don't check for device reuse if the device has no uname.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
This commit is contained in:
Keir Fraser committed 2007-12-20 13:48:27 +00:00
1 parent 53f48ca221
commit 1f7f827c82
1 file changed
+1 -1
+1 -1
View File
@@ -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:
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.