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:
parent
20fc17a55f
commit
24d7ccd182
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/47096-junos-terminal-regex-fix.yml
Normal file
2
changelogs/fragments/47096-junos-terminal-regex-fix.yml
Normal file
|
@ -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…
Reference in a new issue