Skip to contentSkip to conversation

Fix "vncdisplay" option

PATCH New Mark Williamson 1 participant 1 message Jan 3, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix "vncdisplay" option

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

Signature · 4 lines
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!

# HG changeset patch
# User [email protected]
# Date 1167850792 0
# Node ID 9ed4b0daf7533b8e094bd5392b6f849c32de8b53 # Parent 360eb996fa38319867a74bf581c734a80bf6839d [VFB] Fix usage of vncdisplay parameter.

tools/python/xen/xend/server/vfbif.py +1 -1
diff -r 360eb996fa38 -r 9ed4b0daf753 tools/python/xen/xend/server/vfbif.py
@@ -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 ]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel