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
pull/47432/head
Fran Fitzpatrick 6 years ago committed by Toshio Kuratomi
parent 20fc17a55f
commit 24d7ccd182

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

@ -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 = [

Loading…
Cancel
Save