Skip to content

Commit 3aa610e

Browse files
committed
1 parent 709f74e commit 3aa610e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

etcd3/baseclient.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def __init__(self, host=None, port=None, endpoints=None, protocol='http', cert=(
5959
verify=None, timeout=None, headers=None, user_agent=None, pool_size=30,
6060
username=None, password=None, token=None,
6161
server_version=DEFAULT_VERSION, cluster_version=DEFAULT_VERSION,
62-
failover_whitelist=["range", "watch", "status"]):
62+
failover_whitelist=None):
63+
if failover_whitelist is None:
64+
failover_whitelist = ["range", "watch", "status"]
6365
if host is not None:
6466
self.endpoints = ([EtcdEndpoint(host, port)])
6567
else:

0 commit comments

Comments
 (0)