diff -Nru python-etcd3gw-0.2.1/debian/changelog python-etcd3gw-0.2.1/debian/changelog --- python-etcd3gw-0.2.1/debian/changelog 2019-09-02 04:32:47.000000000 -0600 +++ python-etcd3gw-0.2.1/debian/changelog 2021-10-27 08:32:07.000000000 -0600 @@ -1,3 +1,10 @@ +python-etcd3gw (0.2.1-3ubuntu1) focal; 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 14:32:07 +0000 + python-etcd3gw (0.2.1-3) unstable; urgency=medium * Add patch from Chris Lamb to make the build 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 1969-12-31 17:00:00.000000000 -0700 +++ python-etcd3gw-0.2.1/debian/patches/lp1820083-Set-transport-options-on-requests-session.patch 2021-10-27 08:32:07.000000000 -0600 @@ -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/+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 2019-09-02 04:32:47.000000000 -0600 +++ python-etcd3gw-0.2.1/debian/patches/series 2021-10-27 08:30:03.000000000 -0600 @@ -1 +1,2 @@ 0001_reproducible-build.patch +lp1820083-Set-transport-options-on-requests-session.patch