diff -Nru python-etcd3gw-0.2.1/debian/changelog python-etcd3gw-0.2.1/debian/changelog --- python-etcd3gw-0.2.1/debian/changelog 2018-02-10 12:34:12.000000000 -0700 +++ python-etcd3gw-0.2.1/debian/changelog 2021-10-27 09:59:44.000000000 -0600 @@ -1,3 +1,10 @@ +python-etcd3gw (0.2.1-1ubuntu0.18.04.1) bionic; urgency=medium + + * d/p/0002-Set-transport-options-on-requests-session.patch + - Sets TLS parameters for session (LP: #1820083) + + -- Heather Lemon Wed, 27 Oct 2021 15:59:44 +0000 + python-etcd3gw (0.2.1-1) unstable; urgency=medium * Initial release. (Closes: #890071) diff -Nru python-etcd3gw-0.2.1/debian/patches/0002-Set-transport-options-on-requests-session.patch python-etcd3gw-0.2.1/debian/patches/0002-Set-transport-options-on-requests-session.patch --- python-etcd3gw-0.2.1/debian/patches/0002-Set-transport-options-on-requests-session.patch 1969-12-31 17:00:00.000000000 -0700 +++ python-etcd3gw-0.2.1/debian/patches/0002-Set-transport-options-on-requests-session.patch 2021-10-27 09:59:44.000000000 -0600 @@ -0,0 +1,39 @@ +From 90b7a19cdc4daa1230d7f15c10b113abdefdc8c0 Mon Sep 17 00:00:00 2001 +From: Tadeas Ursíny +Date: Wed, 9 May 2018 13:13:01 +0200 +Subject: Set transport options on requests session +Forwarded: no +Last-Update: 2021-10-27 +Origin: upstream, https://github.com/dims/etcd3-gateway/commit/90b7a19cdc4daa1230d7f15c10b113abdefdc8c0 +Bug-Ubuntu: https://bugs.launchpad.net/bugs/1820083 +--- + etcd3gw/client.py | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +diff --git a/etcd3gw/client.py b/etcd3gw/client.py +index 6bd7e3c..623c4b2 100644 +--- a/etcd3gw/client.py ++++ b/etcd3gw/client.py +@@ -51,12 +51,14 @@ class Etcd3Client(object): + self.host = host + self.port = port + self.protocol = protocol ++ + self.session = requests.Session() +- self.kwargs = { +- "timeout": timeout, +- "verify": ca_cert, +- "cert": (cert_cert, cert_key) +- } ++ if timeout is not None: ++ self.session.timeout = timeout ++ if ca_cert is not None: ++ self.session.verify = ca_cert ++ if cert_cert is not None and cert_key is not None: ++ self.session.cert = (cert_cert, cert_key) + + def get_url(self, path): + """Construct a full url to the v3alpha API given a specific path +-- +2.25.1 + diff -Nru python-etcd3gw-0.2.1/debian/patches/series python-etcd3gw-0.2.1/debian/patches/series --- python-etcd3gw-0.2.1/debian/patches/series 1969-12-31 17:00:00.000000000 -0700 +++ python-etcd3gw-0.2.1/debian/patches/series 2021-10-27 09:59:44.000000000 -0600 @@ -0,0 +1 @@ +0002-Set-transport-options-on-requests-session.patch