Allow timeout to be configurable (#14973)

This commit is contained in:
Patrick Ogenstad 2016-04-14 15:35:07 +02:00 committed by Nathaniel Case
parent 78365e206f
commit 6c5ea685a2
3 changed files with 11 additions and 5 deletions

View file

@ -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