Skip to content

Commit 42f33b0

Browse files
ssh: set pylibssh open_session_retries value
ansible-pylibssh 1.3.0 adds support for 'open_session_retries', parameter. Set 3 retry attempts to ensure ssh_channel_open_session() succeeds if libssh returns SSH_AGAIN due to low timeout(ansible/pylibssh#756).
1 parent 0f20eff commit 42f33b0

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

pytest_mh/conn/.ssh.py.swp

16 KB
Binary file not shown.

pytest_mh/conn/ssh.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ def connect(self) -> None:
517517
private_key_password=self.private_key_password,
518518
port=self.port,
519519
host_key_checking=False,
520+
open_session_retries=3,
520521
)
521522
self.__conn.set_ssh_options("timeout", 1)
522523
except LibsshSessionException as e:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansible-pylibssh>=1.2.0
1+
ansible-pylibssh>=1.3.0
22
colorama
33
pytest
44
PyYAML

0 commit comments

Comments
 (0)