mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[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>
This commit is contained in:
1 parent
c8cce1eddd
commit
f32d400767
1 file changed
+6
-1
@@ -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
|
||||
|
||||