direct-io.hg

changeset 12757:3f0ca90351e2

[XEND] Fix reboot for HVM domains if cdrom is empty.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Thu Dec 07 10:54:43 2006 +0000 (2006-12-07)
parents 1d32fb45e08f
children e8a74ac80167 67a06a9b7b1d
files tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/image.py	Wed Dec 06 16:33:48 2006 +0000
     1.2 +++ b/tools/python/xen/xend/image.py	Thu Dec 07 10:54:43 2006 +0000
     1.3 @@ -338,7 +338,7 @@ class HVMImageHandler(ImageHandler):
     1.4          
     1.5          for devuuid, (devtype, devinfo) in deviceConfig.items():
     1.6              if devtype == 'vbd':
     1.7 -                uname = devinfo['uname']
     1.8 +                uname = devinfo.get('uname')
     1.9                  if uname is not None and 'file:' in uname:
    1.10                      (_, vbdparam) = string.split(uname, ':', 1)
    1.11                      if not os.path.isfile(vbdparam):