mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-28 20:40:24 +02:00
terminal regex udpate to match the terminal prompt in safe mode (#134)
* terminal regex udpate to match the terminal prompt in safe mode Signed-off-by: Tomas Herfert <herfik> * changelog Signed-off-by: Tomas Herfert <herfik> * yamllint fix Signed-off-by: Tomas Herfert <herfik> * Update changelogs/fragments/134-command-safemode.yml Co-authored-by: Felix Fontein <felix@fontein.de> Signed-off-by: Tomas Herfert <herfik> Co-authored-by: Tomas Herfert <herfik> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
5af14a8940
commit
309e2b1910
2 changed files with 4 additions and 1 deletions
3
changelogs/fragments/134-command-safemode.yml
Normal file
3
changelogs/fragments/134-command-safemode.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
bugfixes:
|
||||||
|
- "command, facts - commands do not timeout in safe mode anymore
|
||||||
|
(https://github.com/ansible-collections/community.routeros/pull/134)."
|
|
@ -33,7 +33,7 @@ class TerminalModule(TerminalBase):
|
||||||
|
|
||||||
terminal_stdout_re = [
|
terminal_stdout_re = [
|
||||||
re.compile(br"\x1b<"),
|
re.compile(br"\x1b<"),
|
||||||
re.compile(br"\[[\w\-\.]+\@[\w\s\-\.\/]+\] ?> ?$"),
|
re.compile(br"\[[\w\-\.]+\@[\w\s\-\.\/]+\] ?(<SAFE)?> ?$"),
|
||||||
re.compile(br"Please press \"Enter\" to continue!"),
|
re.compile(br"Please press \"Enter\" to continue!"),
|
||||||
re.compile(br"Do you want to see the software license\? \[Y\/n\]: ?"),
|
re.compile(br"Do you want to see the software license\? \[Y\/n\]: ?"),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue