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:
parent
04ae977f39
commit
8517fbf936
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class TerminalModule(TerminalBase):
|
||||||
|
|
||||||
terminal_stderr_re = [
|
terminal_stderr_re = [
|
||||||
re.compile(r"% ?Error"),
|
re.compile(r"% ?Error"),
|
||||||
re.compile(r"^% \w+", re.M),
|
#re.compile(r"^% \w+", re.M),
|
||||||
re.compile(r"% ?Bad secret"),
|
re.compile(r"% ?Bad secret"),
|
||||||
re.compile(r"invalid input", re.I),
|
re.compile(r"invalid input", re.I),
|
||||||
re.compile(r"(?:incomplete|ambiguous) command", re.I),
|
re.compile(r"(?:incomplete|ambiguous) command", re.I),
|
||||||
|
|
Loading…
Reference in a new issue