diff --git a/changelogs/fragments/134-command-safemode.yml b/changelogs/fragments/134-command-safemode.yml new file mode 100644 index 0000000..4482d92 --- /dev/null +++ b/changelogs/fragments/134-command-safemode.yml @@ -0,0 +1,3 @@ +bugfixes: + - "command, facts - commands do not timeout in safe mode anymore + (https://github.com/ansible-collections/community.routeros/pull/134)." diff --git a/plugins/terminal/routeros.py b/plugins/terminal/routeros.py index a2646e3..1d3fa6c 100644 --- a/plugins/terminal/routeros.py +++ b/plugins/terminal/routeros.py @@ -33,7 +33,7 @@ class TerminalModule(TerminalBase): terminal_stdout_re = [ re.compile(br"\x1b<"), - re.compile(br"\[[\w\-\.]+\@[\w\s\-\.\/]+\] ?> ?$"), + re.compile(br"\[[\w\-\.]+\@[\w\s\-\.\/]+\] ?( ?$"), re.compile(br"Please press \"Enter\" to continue!"), re.compile(br"Do you want to see the software license\? \[Y\/n\]: ?"), ]