Backport: junos terminal regex prompt fix to v2.7 (#47203)

* Fix junos terminal regex (#47096)

Fix junos stdout regex

Change at hing

(cherry picked from commit fc341e01fa)

* Changelog: adds fragment for junos fix terminal
prompt regex

* Proper yaml formatting
This commit is contained in:
Fran Fitzpatrick 2018-10-22 10:38:12 -05:00 committed by Toshio Kuratomi
parent 20fc17a55f
commit 24d7ccd182
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- junos - fix terminal prompt regex (https://github.com/ansible/ansible/pull/47096)

View file

@ -36,7 +36,7 @@ except ImportError:
class TerminalModule(TerminalBase): class TerminalModule(TerminalBase):
terminal_stdout_re = [ terminal_stdout_re = [
re.compile(br"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$|%"), re.compile(br"[\r\n]?[\w@+\-\.:\/\[\]]+[>#%] ?$"),
] ]
terminal_stderr_re = [ terminal_stderr_re = [