mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Allow timeout to be configurable (#14973)
This commit is contained in:
committed by
Nathaniel Case
parent
78365e206f
commit
6c5ea685a2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user