- no longer filter out None
authorTony Mack <tmack@cs.princeton.edu>
Fri, 13 Oct 2006 15:24:48 +0000 (15:24 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 13 Oct 2006 15:24:48 +0000 (15:24 +0000)
PLC/Methods/GetNodeGroups.py

index ffd6eb3..738f0ce 100644 (file)
@@ -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