The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/pylxd/pull/359

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
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.kavan...@canonical.com>
From 28b31cc21fb4ac4e9e073864b635b3818e4ae3f7 Mon Sep 17 00:00:00 2001
From: Alex Kavanagh <alex.kavan...@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.kavan...@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"
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to