direct-io.hg

changeset 13713:b33a7d45d50a

Fix passing keymap parameter to xen-vncfb.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
author kaf24@localhost.localdomain
date Tue Jan 30 13:42:19 2007 +0000 (2007-01-30)
parents 2efe681d1194
children b51ed174fe8f
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Tue Jan 30 13:39:37 2007 +0000
     1.2 +++ b/tools/python/xen/xm/create.py	Tue Jan 30 13:42:19 2007 +0000
     1.3 @@ -594,9 +594,9 @@ def configure_vfbs(config_devs, vals):
     1.4                            'xauthority', 'type', 'vncpasswd' ]:
     1.5                  err("configuration option %s unknown to vfbs" % k)
     1.6              config.append([k,v])
     1.7 -        for n in iter(dir(vals)):
     1.8 -            if n == "keymap":
     1.9 -               config.append(['keymap',vals.keymap])
    1.10 +        if not d.has_key("keymap"):
    1.11 +            if vals.keymap:
    1.12 +                config.append(['keymap',vals.keymap])
    1.13          if not d.has_key("display") and os.environ.has_key("DISPLAY"):
    1.14              config.append(["display", os.environ['DISPLAY']])
    1.15          if not d.has_key("xauthority"):