Skip to content

Commit

Permalink
Fix dropped timeout in pylxd/client.py
Browse files Browse the repository at this point in the history
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@canonical.com>
  • Loading branch information
ajkavanagh committed May 2, 2019
1 parent b231c0a commit 28b31cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pylxd/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 28b31cc

Please sign in to comment.