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>
This commit is contained in:
Keir Fraser committed 2009-06-19 08:44:33 +01:00
1 parent 65afc94bc6
commit faefc018df
1 file changed
+2 -3
+2 -3
View File
@@ -755,9 +755,8 @@ class HVMImageHandler(ImageHandler):
if not self.display :
self.display = ''
store_dmargs = self.dmargs[:]
store_dmargs.remove('-sdl')
store_dmargs.remove('-disable-opengl')
store_dmargs = [ x for x in self.dmargs
if x not in ['-sdl', '-disable-opengl'] ]
try :
midx = store_dmargs.index('-monitor')
store_dmargs[midx + 1] = 'pty'
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.