Update routeros.py (#138) (#9)

* Update routeros.py

Adjust the terminal detection line to support forward slashes in device hostnames (connections fail without clear reason otherwise)

* Add changelog fragment.

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 3f3e0d0)

Fore-ported from ansible-collections/community.network#138.
This commit is contained in:
Felix Fontein 2020-11-09 12:47:22 +01:00 committed by GitHub
parent 70208c0401
commit 49ca4c0279
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -47,7 +47,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\]: ?"),
]