diff options
author | Alastair Tse <atse@xensource.com> | 2007-01-31 15:02:20 +0000 |
---|---|---|
committer | Alastair Tse <atse@xensource.com> | 2007-01-31 15:02:20 +0000 |
commit | f32d40076720284ffd928e649dd6b9175176f0bb (patch) | |
tree | c1c1d655c51b61dd395ba83c9f24c90ecdb802b9 /tools | |
parent | c8cce1edddec9f95726c1ff9450ee4c3c6bfe483 (diff) | |
download | xen-f32d40076720284ffd928e649dd6b9175176f0bb.tar.gz xen-f32d40076720284ffd928e649dd6b9175176f0bb.tar.bz2 xen-f32d40076720284ffd928e649dd6b9175176f0bb.zip |
[XEND] Hide other_config from console and vfb SXP to prevent string
representation of dict to appear in SXP.
Signed-off-by: Alastair Tse <atse@xensource.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xend/XendConfig.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index f17a5a2295..a3c5398b49 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -1223,7 +1223,12 @@ class XendConfig(dict): "configuration dictionary.") sxpr.append(dev_type) - config = [(opt, val) for opt, val in dev_info.items()] + if dev_type in ('console', 'vfb'): + config = [(opt, val) for opt, val in dev_info.items() + if opt != 'other_config'] + else: + config = [(opt, val) for opt, val in dev_info.items()] + sxpr += config return sxpr |