ia64/xen-unstable

changeset 19804:e2625f235940

xend: fix a regression in c/s 19791.

Using changeset 19791:c0d2838fc10f, I can't create an HVM.
xend.log shows:

File "usr/lib64/python2.4/site-packages/xen/xend/image.py", line
759, in configure
store_dmargs.remove('-sdl')
ValueError: list.remove(x): x not in list

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 19 08:44:33 2009 +0100 (2009-06-19)
parents 07fea69baadc
children 2f1fa2215e60
files tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/image.py	Fri Jun 19 08:43:58 2009 +0100
     1.2 +++ b/tools/python/xen/xend/image.py	Fri Jun 19 08:44:33 2009 +0100
     1.3 @@ -755,9 +755,8 @@ class HVMImageHandler(ImageHandler):
     1.4          if not self.display :
     1.5              self.display = ''
     1.6  
     1.7 -        store_dmargs = self.dmargs[:]
     1.8 -        store_dmargs.remove('-sdl')
     1.9 -        store_dmargs.remove('-disable-opengl')
    1.10 +        store_dmargs = [ x for x in self.dmargs
    1.11 +                         if x not in ['-sdl', '-disable-opengl'] ]
    1.12          try :
    1.13              midx = store_dmargs.index('-monitor')
    1.14              store_dmargs[midx + 1] = 'pty'