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().
This commit is contained in:
parent
935a3ab2cb
commit
26546242e9
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue