From 28b31cc21fb4ac4e9e073864b635b3818e4ae3f7 Mon Sep 17 00:00:00 2001 From: Alex Kavanagh 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/. 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 --- 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"