10gen / mongo-orchestration

Apache License 2.0
7 stars 11 forks source link

Remove uses of map for python 3 compatibility #219

Closed ShaneHarvey closed 8 years ago

ShaneHarvey commented 8 years ago

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.