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

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2006-12-07 10:54:43 +00:00
1 parent 12e12aa8f9
commit dc960266aa
1 file changed
+1 -1
+1 -1
View File
@@ -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):
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.