28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
# HG changeset patch
|
|
# User Alastair Tse <atse@xensource.com>
|
|
# Date 1170255740 0
|
|
# Node ID dfa9e5565063455d96b78a84c22e6e6b607d9f4a
|
|
# Parent f63e1244b48dd6d8c064f4ed38b7d7cf2bdf62ee
|
|
[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>
|
|
|
|
diff -r f63e1244b48d -r dfa9e5565063 tools/python/xen/xend/XendConfig.py
|
|
--- a/tools/python/xen/xend/XendConfig.py Wed Jan 31 15:01:09 2007 +0000
|
|
+++ b/tools/python/xen/xend/XendConfig.py Wed Jan 31 15:02:20 2007 +0000
|
|
@@ -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
|