updates the prompt regexp for prompt handling in sros (#28015)

* thanks to @jurajama for tracking this down and providing the fix
* fixes #24192
This commit is contained in:
Peter Sprygada 2017-08-10 12:59:49 -04:00 committed by GitHub
parent 2015835759
commit d8b005ec65

View file

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