mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-09 17:59:09 -07:00
Allow timeout to be configurable (#14973)
This commit is contained in:
parent
78365e206f
commit
6c5ea685a2
3 changed files with 11 additions and 5 deletions
|
@ -106,7 +106,7 @@ class Shell(object):
|
|||
key_filename=key_filename, allow_agent=allow_agent)
|
||||
|
||||
self.shell = self.ssh.invoke_shell()
|
||||
self.shell.settimeout(10)
|
||||
self.shell.settimeout(timeout)
|
||||
|
||||
if self.kickstart:
|
||||
self.shell.sendall("\n")
|
||||
|
@ -184,4 +184,3 @@ class Shell(object):
|
|||
if match:
|
||||
self._matched_prompt = match.group()
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue