Updated the Regex for promt matching (#23186) (#23188)

(cherry picked from commit 632270b913)
pull/23232/head
John R Barker 8 years ago committed by GitHub
parent 1b2411c6d2
commit f8cef96c2c

@ -31,7 +31,7 @@ from ansible.errors import AnsibleConnectionFailure
class TerminalModule(TerminalBase):
terminal_stdout_re = [
re.compile(r"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),
re.compile(r"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:#) ?$"),
re.compile(r"\[\w+\@[\w\-\.]+(?: [^\]])\] ?[>#\$] ?$")
]

Loading…
Cancel
Save