[lxc-devel] [pylxd/master] Fix dropped timeout in pylxd/client.py
ajkavanagh on Github
lxc-bot at linuxcontainers.org
Thu May 2 11:25:43 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 610 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190502/0b0b5357/attachment-0001.bin>
-------------- next part --------------
From 28b31cc21fb4ac4e9e073864b635b3818e4ae3f7 Mon Sep 17 00:00:00 2001
From: Alex Kavanagh <alex.kavanagh at canonical.com>
Date: Thu, 2 May 2019 12:23:28 +0100
Subject: [PATCH] Fix dropped timeout in pylxd/client.py
When constructing the call, the [next-part] method creates the next
element in the chain of /part/<nextpart>. However, it doesn't pass
through the timeout parameter which means that it doesn't end up on the
final call. This patch fixes that.
Signed-off-by: Alex Kavanagh <alex.kavanagh at canonical.com>
---
pylxd/client.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pylxd/client.py b/pylxd/client.py
index 3ccd3a39..62d32976 100644
--- a/pylxd/client.py
+++ b/pylxd/client.py
@@ -85,7 +85,8 @@ def __getattr__(self, name):
name = 'storage-pools'
return self.__class__('{}/{}'.format(self._api_endpoint, name),
cert=self.session.cert,
- verify=self.session.verify)
+ verify=self.session.verify,
+ timeout=self._timeout)
def __getitem__(self, item):
"""This converts python api.thing[name] -> ".../thing/name"
More information about the lxc-devel
mailing list