1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Added regex to recognize prompt (#31947)

This commit is contained in:
Charles Tolley 2017-10-23 08:04:10 -06:00 committed by Ganesh Nalawade
parent 4ffd60a406
commit 531d6c50bf

View file

@ -31,7 +31,8 @@ class TerminalModule(TerminalBase):
terminal_stdout_re = [
re.compile(br"[\r\n]?[\w]*\(.+\) ?#(?:\s*)$"),
re.compile(br"[pP]assword:$")
re.compile(br"[pP]assword:$"),
re.compile(br"(?<=\s)[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\s*#\s*$"),
]
terminal_stderr_re = [