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 19:34:12.000000000 +0000 +++ python-etcd3gw-0.2.1/debian/changelog 2021-10-27 15:59:44.000000000 +0000 @@ -1,3 +1,10 @@ +python-etcd3gw (0.2.1-1ubuntu1) bionic; urgency=medium + + * d/p/lp1820083-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/lp1820083-Set-transport-options-on-requests-session.patch python-etcd3gw-0.2.1/debian/patches/lp1820083-Set-transport-options-on-requests-session.patch --- python-etcd3gw-0.2.1/debian/patches/lp1820083-Set-transport-options-on-requests-session.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-etcd3gw-0.2.1/debian/patches/lp1820083-Set-transport-options-on-requests-session.patch 2021-10-27 15:59:44.000000000 +0000 @@ -0,0 +1,39 @@ +From 90b7a19cdc4daa1230d7f15c10b113abdefdc8c0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tade=C3=A1=C5=A1=20Urs=C3=ADny?= +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/ubuntu/python-etcd3gw/+bug/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 1970-01-01 00:00:00.000000000 +0000 +++ python-etcd3gw-0.2.1/debian/patches/series 2021-10-27 15:24:01.000000000 +0000 @@ -0,0 +1 @@ +lp1820083-Set-transport-options-on-requests-session.patch