From d8b005ec6547a1f8bd1f64bfbefe0b7404cee39d Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Thu, 10 Aug 2017 12:59:49 -0400 Subject: [PATCH] updates the prompt regexp for prompt handling in sros (#28015) * thanks to @jurajama for tracking this down and providing the fix * fixes #24192 --- 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 e7153c13c6c..b30ce48fbea 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\-\.]+(?: [^\]])\] ?[>#\$] ?$") ]