From: Keir Fraser Date: Thu, 8 May 2008 10:20:04 +0000 (+0100) Subject: Xend: Fix handling of vnc params. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14215^2~49 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5e5a6aa9bec5ae555976dfea75c3339a98ed5b6d;p=xen.git Xend: Fix handling of vnc params. Signed-off-by: Yosuke Iwamatsu --- diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index 099cd32ee9..46517c7ac3 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -294,11 +294,11 @@ class ImageHandler: vnclisten = vnc_config.get('vnclisten', XendOptions.instance().get_vnclisten_address()) - vncdisplay = vnc_config.get('vncdisplay', 0) + vncdisplay = int(vnc_config.get('vncdisplay', 0)) ret.append('-vnc') ret.append("%s:%s%s" % (vnclisten, vncdisplay, vncopts)) - if vnc_config.get('vncunused', 0): + if int(vnc_config.get('vncunused', 1)) != 0: ret.append('-vncunused') elif has_sdl: