ia64/xen-unstable

changeset 16651:741ecee8ccc0

Xend: don't check for device reuse if the device has no uname.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Dec 20 13:48:27 2007 +0000 (2007-12-20)
parents 923b8dbb0fed
children 7b7b123625d0 c433ebd2a9bb
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Thu Dec 20 13:16:21 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Thu Dec 20 13:48:27 2007 +0000
     1.3 @@ -985,7 +985,7 @@ class XendConfig(dict):
     1.4              dev_uname = dev_info.get('uname')
     1.5              blkdev_name = dev_info.get('dev')
     1.6              devid = self._blkdev_name_to_number(blkdev_name)
     1.7 -            if devid == None:
     1.8 +            if devid == None or dev_uname == None:
     1.9                  return
    1.10              
    1.11              for o_dev_type, o_dev_info in defined_devices_sxpr: