Xend: Fix handling of vnc params.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
This commit is contained in:
Keir Fraser committed 2008-05-08 11:20:04 +01:00
1 parent 84c8c8735b
commit 5e5a6aa9be
1 file changed
+2 -2
+2 -2
View File
@@ -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:
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.