Skip to content

Commit

Permalink
feat: support dashes in username (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
heuels and felixfontein authored Dec 24, 2020
1 parent b322351 commit 389924b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/18-support-dashes-in-username.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- command - added support for a dash (``-``) in username (https://github.com/ansible-collections/community.routeros/pull/18).
- facts - added support for a dash (``-``) in username (https://github.com/ansible-collections/community.routeros/pull/18).
2 changes: 1 addition & 1 deletion plugins/terminal/routeros.py
Original file line number Diff line number Diff line change
Expand Up @@ -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\]: ?"),
]
Expand Down

0 comments on commit 389924b

Please sign in to comment.