ia64/xen-unstable

changeset 13160:43f367b6c16c

[XEND] Minor syntax cleanup in security.py for sxp parsing.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Thu Dec 21 14:33:37 2006 +0000 (2006-12-21)
parents c3d84afbbb47
children 8348f40ba2b7
files tools/python/xen/util/security.py
line diff
     1.1 --- a/tools/python/xen/util/security.py	Thu Dec 21 15:16:25 2006 +0000
     1.2 +++ b/tools/python/xen/util/security.py	Thu Dec 21 14:33:37 2006 +0000
     1.3 @@ -115,7 +115,7 @@ def get_security_info(info, field):
     1.4      if isinstance(info, dict):
     1.5          security = info['security']
     1.6      elif isinstance(info, list):
     1.7 -        security = sxp.child_value(info, 'security', )
     1.8 +        security = sxp.child_value(info, 'security')
     1.9      if not security:
    1.10          if field == 'ssidref':
    1.11              #return default ssid
    1.12 @@ -357,7 +357,7 @@ def refresh_ssidref(config):
    1.13      if isinstance(config, dict):
    1.14          security = config['security']
    1.15      elif isinstance(config, list):
    1.16 -        security = sxp.child_value(config, 'security',)
    1.17 +        security = sxp.child_value(config, 'security')
    1.18      else:
    1.19          err("Instance type of config parameter not supported.")
    1.20      if not security: