From fc341e01face3544c649b54015605f94597e069c Mon Sep 17 00:00:00 2001 From: Fran Fitzpatrick Date: Wed, 17 Oct 2018 08:59:35 -0500 Subject: [PATCH] Fix junos terminal regex (#47096) Fix junos stdout regex Change at hing --- lib/ansible/plugins/terminal/junos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/terminal/junos.py b/lib/ansible/plugins/terminal/junos.py index 9d7f73f2e0..c954ebcf40 100644 --- a/lib/ansible/plugins/terminal/junos.py +++ b/lib/ansible/plugins/terminal/junos.py @@ -36,7 +36,7 @@ except ImportError: class TerminalModule(TerminalBase): terminal_stdout_re = [ - re.compile(br"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$|%"), + re.compile(br"[\r\n]?[\w@+\-\.:\/\[\]]+[>#%] ?$"), ] terminal_stderr_re = [