fix handling of ># ending prompts for sros (#41382)

pull/4420/head
Roman Dodin 2018-06-12 18:37:08 +03:00 committed by Peter Sprygada
parent 5bdd91d75f
commit 269f404121
1 changed files with 1 additions and 1 deletions

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\-\.]+(?: [^\]])\] ?[>#\$] ?$")
]