From: Mark Williamson Subject: [PATCH] [VFB] Fix "vncdisplay" option Date: Wed, 3 Jan 2007 19:06:28 +0000 Message-ID: <200701031906.28598.mark.williamson@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_06/mFyO47Qc4Y0I" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir.Fraser@cl.cam.ac.uk Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_06/mFyO47Qc4Y0I Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Tiny tweak to fix the vncdisplay option (previously was failing in adding a string to an int). Useful for allocating fixed VNC ports to specific domains. Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! --Boundary-00=_06/mFyO47Qc4Y0I Content-Type: text/x-diff; charset="us-ascii"; name="vfb-vncdisplay.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="vfb-vncdisplay.patch" # HG changeset patch # User mark.williamson@cl.cam.ac.uk # Date 1167850792 0 # Node ID 9ed4b0daf7533b8e094bd5392b6f849c32de8b53 # Parent 360eb996fa38319867a74bf581c734a80bf6839d [VFB] Fix usage of vncdisplay parameter. diff -r 360eb996fa38 -r 9ed4b0daf753 tools/python/xen/xend/server/vfbif.py --- a/tools/python/xen/xend/server/vfbif.py Wed Dec 13 16:13:26 2006 +0000 +++ b/tools/python/xen/xend/server/vfbif.py Wed Jan 03 18:59:52 2007 +0000 @@ -46,7 +46,7 @@ class VfbifController(DevController): if config.has_key("vncunused"): args += ["--unused"] elif config.has_key("vncdisplay"): - args += ["--vncport", "%d" % (5900 + config["vncdisplay"])] + args += ["--vncport", "%d" % (5900 + int(config["vncdisplay"]))] vnclisten = config.get("vnclisten", xen.xend.XendRoot.instance().get_vnclisten_address()) args += [ "--listen", vnclisten ] --Boundary-00=_06/mFyO47Qc4Y0I Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_06/mFyO47Qc4Y0I--