ia64/xen-unstable

changeset 17611:36694cae3927

Xend: Fix handling of vnc params.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu May 08 11:20:04 2008 +0100 (2008-05-08)
parents 3a1758f420d3
children 72e70f9041c2
files tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/image.py	Thu May 08 11:18:34 2008 +0100
     1.2 +++ b/tools/python/xen/xend/image.py	Thu May 08 11:20:04 2008 +0100
     1.3 @@ -294,11 +294,11 @@ class ImageHandler:
     1.4  
     1.5              vnclisten = vnc_config.get('vnclisten',
     1.6                                         XendOptions.instance().get_vnclisten_address())
     1.7 -            vncdisplay = vnc_config.get('vncdisplay', 0)
     1.8 +            vncdisplay = int(vnc_config.get('vncdisplay', 0))
     1.9              ret.append('-vnc')
    1.10              ret.append("%s:%s%s" % (vnclisten, vncdisplay, vncopts))
    1.11  
    1.12 -            if vnc_config.get('vncunused', 0):
    1.13 +            if int(vnc_config.get('vncunused', 1)) != 0:
    1.14                  ret.append('-vncunused')
    1.15  
    1.16          elif has_sdl: