summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorTim Rupp <caphrim007@gmail.com>2016-09-22 14:43:15 -0700
committerJohn R Barker <john@johnrbarker.com>2016-09-22 22:43:15 +0100
commit26546242e9c65d6f7aaa3f0f6b6facc2a3e01d78 (patch)
treea8cbc14e87d0f1653a916e8a5e418846abafb05f /network
parent935a3ab2cb955c565edfe2d581305ad0fe32a85a (diff)
downloadansible-modules-extras-26546242e9c65d6f7aaa3f0f6b6facc2a3e01d78.tar.gz
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().
Diffstat (limited to 'network')
-rw-r--r--network/f5/bigip_facts.py2
1 files changed, 1 insertions, 1 deletions
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):