direct-io.hg

changeset 13747:dfa9e5565063

[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>
author Alastair Tse <atse@xensource.com>
date Wed Jan 31 15:02:20 2007 +0000 (2007-01-31)
parents f63e1244b48d
children 5d12faee0708
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Wed Jan 31 15:01:09 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Wed Jan 31 15:02:20 2007 +0000
     1.3 @@ -1223,7 +1223,12 @@ class XendConfig(dict):
     1.4                                    "configuration dictionary.")
     1.5              
     1.6          sxpr.append(dev_type)
     1.7 -        config = [(opt, val) for opt, val in dev_info.items()]
     1.8 +        if dev_type in ('console', 'vfb'):
     1.9 +            config = [(opt, val) for opt, val in dev_info.items()
    1.10 +                      if opt != 'other_config']
    1.11 +        else:
    1.12 +            config = [(opt, val) for opt, val in dev_info.items()]
    1.13 +            
    1.14          sxpr += config
    1.15  
    1.16          return sxpr