Skip to content
This repository was archived by the owner on Aug 21, 2020. It is now read-only.

Commit d9bf07c

Browse files
heychiragdims
authored andcommitted
Support for protocol type while creating client.
1 parent 224f409 commit d9bf07c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

etcd3gw/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,13 @@ def watch_prefix_once(self, key_prefix, timeout=None, **kwargs):
400400

401401

402402
def client(host='localhost', port=2379,
403-
ca_cert=None, cert_key=None, cert_cert=None, timeout=None):
403+
ca_cert=None, cert_key=None, cert_cert=None,
404+
timeout=None, protocol="http"):
404405
"""Return an instance of an Etcd3Client."""
405406
return Etcd3Client(host=host,
406407
port=port,
407408
ca_cert=ca_cert,
408409
cert_key=cert_key,
409410
cert_cert=cert_cert,
410-
timeout=timeout)
411+
timeout=timeout,
412+
protocol=protocol)

0 commit comments

Comments
 (0)