[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.0.4-testing] [XEND] Minor syntax cleanup in security.py for sxp parsing.



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Date 1166711617 0
# Node ID 4ead5a65e06326473ffe498acfd4d5d8e729e6ee
# Parent  603c3c80b299371179c0536fd8da5083f76ad0fc
[XEND] Minor syntax cleanup in security.py for sxp parsing.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>

Based on xen-unstable changeset 13124:43f367b6c16c211021ed51931a25ce351270d9d3
---
 tools/python/xen/util/security.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 603c3c80b299 -r 4ead5a65e063 tools/python/xen/util/security.py
--- a/tools/python/xen/util/security.py Thu Dec 21 13:58:51 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.