* fix: Fix pattern to handle long system identity names
When the system identity string is too long, the terminal output may be
truncated. The truncated output is marked by multiple carriage returns
(`\r`) and a `<` symbol.
This is a example of a truncated output:
`\r\n\r\r\r\r<MY_VERYVERY-LONG-SYSTEM-IDENTIY-NAME] > `
The existing regex failed to match these truncated prompts.
This update introduces a more flexible regex that matches both, the truncated and the preserved output.
* add change-log fragment for pr 386
* refactoring change-log fragment for pr 386
* Update changelogs/fragments/386-fix-pattern-to-handle-long-identity.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
* 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>
* 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.