# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Date 1166711617 0
# Node ID 43f367b6c16c211021ed51931a25ce351270d9d3
# Parent c3d84afbbb47a4871aa2f4e9262ab1e18d6c8c36
[XEND] Minor syntax cleanup in security.py for sxp parsing.
Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
tools/python/xen/util/security.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -r c3d84afbbb47 -r 43f367b6c16c tools/python/xen/util/security.py
--- a/tools/python/xen/util/security.py Thu Dec 21 15:16:25 2006 +0000
+++ b/tools/python/xen/util/security.py Thu Dec 21 14:33:37 2006 +0000
@@ -115,7 +115,7 @@ def get_security_info(info, field):
if isinstance(info, dict):
security = info['security']
elif isinstance(info, list):
- security = sxp.child_value(info, 'security', )
+ security = sxp.child_value(info, 'security')
if not security:
if field == 'ssidref':
#return default ssid
@@ -357,7 +357,7 @@ def refresh_ssidref(config):
if isinstance(config, dict):
security = config['security']
elif isinstance(config, list):
- security = sxp.child_value(config, 'security',)
+ security = sxp.child_value(config, 'security')
else:
err("Instance type of config parameter not supported.")
if not security:
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|