Skip to content

Commit ff0f0e7

Browse files
Make Etcd3Client's endpoints parameter expect an iterable of Endpoint instances
1 parent afd0fd7 commit ff0f0e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etcd3/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def __init__(self, host='localhost', port=2379, endpoints=None,
169169
self.endpoints = {ep.netloc: ep}
170170
else:
171171
# If the endpoints are passed externally, just use those.
172-
self.endpoints = endpoints
172+
self.endpoints = {ep.netloc: ep for ep in endpoints}
173173

174174
self._ep_in_use = random.choice(list(self.endpoints.keys()))
175175

0 commit comments

Comments
 (0)