In python 3 map returns an iterator. This causes a problem for sharded clusters because the rs_params['members'] field is assumed to be a list and is iterated over multiple times.
Removed the other two uses of map in favor of list comprehensions to not promote the use of map in the future.
In python 3
map
returns an iterator. This causes a problem for sharded clusters because thers_params['members']
field is assumed to be alist
and is iterated over multiple times.Removed the other two uses of
map
in favor of list comprehensions to not promote the use ofmap
in the future.