From: Alastair Tse Date: Wed, 31 Jan 2007 15:02:20 +0000 (+0000) Subject: [XEND] Hide other_config from console and vfb SXP to prevent string X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15358^2~32^2~1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f32d40076720284ffd928e649dd6b9175176f0bb;p=xen.git [XEND] Hide other_config from console and vfb SXP to prevent string representation of dict to appear in SXP. Signed-off-by: Alastair Tse --- 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