1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove catch-all regex on IOS terminal plugin (#23858)

We have a list of specific messages that we scree-scrape and flag
them as legit errors.
However, we also have a catch-all regex that matches everything
starting with %.
That can cause issues on commands that return lines with that
character, like for example the 'crypto key generate'.

Fixes #23770
This commit is contained in:
Ricardo Carrillo Cruz 2017-04-21 15:30:23 +02:00 committed by GitHub
parent 04ae977f39
commit 8517fbf936

View file

@ -35,7 +35,7 @@ class TerminalModule(TerminalBase):
terminal_stderr_re = [
re.compile(r"% ?Error"),
re.compile(r"^% \w+", re.M),
#re.compile(r"^% \w+", re.M),
re.compile(r"% ?Bad secret"),
re.compile(r"invalid input", re.I),
re.compile(r"(?:incomplete|ambiguous) command", re.I),