From 0f50c2f1d7c6a2d17bc3e00f39af6768632dfcd2 Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Tue, 12 Jun 2018 18:37:08 +0300 Subject: [PATCH] fix handling of ># ending prompts for sros (#41382) --- lib/ansible/plugins/terminal/sros.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/terminal/sros.py b/lib/ansible/plugins/terminal/sros.py index b30ce48fbea..77085a383ed 100644 --- a/lib/ansible/plugins/terminal/sros.py +++ b/lib/ansible/plugins/terminal/sros.py @@ -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\-\.]+(?: [^\]])\] ?[>#\$] ?$") ]