[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix passing keymap parameter to xen-vncfb.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxxx
# Date 1170164539 0
# Node ID b33a7d45d50a2d1566111e54a066b91890832a2d
# Parent  2efe681d1194e2a6aa00f0087118a0329c30a28d
Fix passing keymap parameter to xen-vncfb.
Signed-off-by: Takanori Kasai <kasai.takanori@xxxxxxxxxxxxxx>
---
 tools/python/xen/xm/create.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r 2efe681d1194 -r b33a7d45d50a tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Tue Jan 30 13:39:37 2007 +0000
+++ b/tools/python/xen/xm/create.py     Tue Jan 30 13:42:19 2007 +0000
@@ -594,9 +594,9 @@ def configure_vfbs(config_devs, vals):
                           'xauthority', 'type', 'vncpasswd' ]:
                 err("configuration option %s unknown to vfbs" % k)
             config.append([k,v])
-        for n in iter(dir(vals)):
-            if n == "keymap":
-               config.append(['keymap',vals.keymap])
+        if not d.has_key("keymap"):
+            if vals.keymap:
+                config.append(['keymap',vals.keymap])
         if not d.has_key("display") and os.environ.has_key("DISPLAY"):
             config.append(["display", os.environ['DISPLAY']])
         if not d.has_key("xauthority"):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.