From 26546242e9c65d6f7aaa3f0f6b6facc2a3e01d78 Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Thu, 22 Sep 2016 14:43:15 -0700 Subject: Corrects an implied map() usage as list (#3010) In the six package, the map() function returns an iterator instead of a list. This code was continuing to use the map() return value as if it were a list and this broke the address_class facts. This patch changes the code to use the list() method on the return value of map(). --- network/f5/bigip_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'network') diff --git a/network/f5/bigip_facts.py b/network/f5/bigip_facts.py index 2189ded2..dc6c6b7d 100644 --- a/network/f5/bigip_facts.py +++ b/network/f5/bigip_facts.py @@ -1079,7 +1079,7 @@ class AddressClasses(object): def get_address_class(self): key = self.api.LocalLB.Class.get_address_class(self.address_classes) value = self.api.LocalLB.Class.get_address_class_member_data_value(key) - result = map(zip, [x['members'] for x in key], value) + result = list(map(zip, [x['members'] for x in key], value)) return result def get_description(self): -- cgit v1.2.1