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

Commit

Permalink
Support for protocol type while creating client.
Browse files Browse the repository at this point in the history
  • Loading branch information
heychirag authored and dims committed Aug 3, 2018
1 parent 224f409 commit d9bf07c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions etcd3gw/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,13 @@ def watch_prefix_once(self, key_prefix, timeout=None, **kwargs):


def client(host='localhost', port=2379,
ca_cert=None, cert_key=None, cert_cert=None, timeout=None):
ca_cert=None, cert_key=None, cert_cert=None,
timeout=None, protocol="http"):
"""Return an instance of an Etcd3Client."""
return Etcd3Client(host=host,
port=port,
ca_cert=ca_cert,
cert_key=cert_key,
cert_cert=cert_cert,
timeout=timeout)
timeout=timeout,
protocol=protocol)

0 comments on commit d9bf07c

Please sign in to comment.