From: Tony Mack Date: Fri, 13 Oct 2006 15:24:48 +0000 (+0000) Subject: - no longer filter out None X-Git-Tag: pycurl-7_13_1~591 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6b89b207814cd4bc7c710ee086c85b2f8a82e507;p=plcapi.git - no longer filter out None --- diff --git a/PLC/Methods/GetNodeGroups.py b/PLC/Methods/GetNodeGroups.py index ffd6eb33..738f0ced 100644 --- a/PLC/Methods/GetNodeGroups.py +++ b/PLC/Methods/GetNodeGroups.py @@ -25,10 +25,7 @@ class GetNodeGroups(Method): # Get node group details nodegroups = NodeGroups(self.api, nodegroup_id_or_name_list).values() - # Filter out undesired or None fields (XML-RPC cannot marshal - # None) and turn each nodegroup into a real dict. - valid_return_fields_only = lambda (key, value): value is not None - nodegroups = [dict(filter(valid_return_fields_only, nodegroup.items())) \ - for nodegroup in nodegroups] + # Turn each nodegroup into a real dict. + nodegroups = [dict(nodegroup.items()) for nodegroup in nodegroups] return nodegroups