You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2020/08/04 18:34:23 UTC
[libcloud] 02/06: Fix lint.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 514776fc58f8233f35ce7052e628232b16e3799c
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Tue Aug 4 18:34:47 2020 +0200
Fix lint.
---
libcloud/compute/base.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libcloud/compute/base.py b/libcloud/compute/base.py
index e688e20..ff1a570 100644
--- a/libcloud/compute/base.py
+++ b/libcloud/compute/base.py
@@ -1886,8 +1886,9 @@ class NodeDriver(BaseDriver):
# way through.
# If this happens, we try to re-connect before re-attempting
# to run the step.
+ timeout = int(ssh_client.timeout) if ssh_client.timeout else None
ssh_client = self._ssh_client_connect(ssh_client=ssh_client,
- timeout=ssh_client.timeout)
+ timeout=timeout)
if tries >= max_tries:
raise LibcloudError(value='Failed after %d tries: %s'