mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
[XEND] Fix reboot for HVM domains if cdrom is empty.
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
12e12aa8f9
commit
dc960266aa
1 file changed
+1
-1
@@ -338,7 +338,7 @@ class HVMImageHandler(ImageHandler):
|
||||
|
||||
for devuuid, (devtype, devinfo) in deviceConfig.items():
|
||||
if devtype == 'vbd':
|
||||
uname = devinfo['uname']
|
||||
uname = devinfo.get('uname')
|
||||
if uname is not None and 'file:' in uname:
|
||||
(_, vbdparam) = string.split(uname, ':', 1)
|
||||
if not os.path.isfile(vbdparam):
|
||||
|
||||