From 6b89b207814cd4bc7c710ee086c85b2f8a82e507 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 13 Oct 2006 15:24:48 +0000 Subject: [PATCH] - no longer filter out None --- PLC/Methods/GetNodeGroups.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 -- 2.47.0