Backport: junos terminal regex prompt fix to v2.6 (#47204)

* Fix junos terminal regex (#47096)

Fix junos stdout regex

Change at hing

(cherry picked from commit fc341e01fa)

* Changelog: adds fragment for junos fix terminal
pull/48175/head
Fran Fitzpatrick 7 years ago committed by Matt Clay
parent c6f712b438
commit dcf812e736

@ -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):
terminal_stdout_re = [
re.compile(br"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$|%"),
re.compile(br"[\r\n]?[\w@+\-\.:\/\[\]]+[>#%] ?$"),
]
terminal_stderr_re = [

Loading…
Cancel
Save