mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Xend: Fix handling of vnc params.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
This commit is contained in:
1 parent
84c8c8735b
commit
5e5a6aa9be
1 file changed
+2
-2
@@ -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:
|
||||
|
||||