diff options
author | Ricardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com> | 2017-04-21 15:30:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-21 15:30:23 +0200 |
commit | 8517fbf9361269ecc3525ab1b8d861a7447ac6ae (patch) | |
tree | 952a6244710cebda334ec23e1efd5dc3da4069c5 | |
parent | 04ae977f39c2dc86b4f0aeb3f906b9ff5d02c380 (diff) | |
download | ansible-8517fbf9361269ecc3525ab1b8d861a7447ac6ae.tar.gz |
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
-rw-r--r-- | lib/ansible/plugins/terminal/ios.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/terminal/ios.py b/lib/ansible/plugins/terminal/ios.py index ec31a25ecf..70a9cd60b3 100644 --- a/lib/ansible/plugins/terminal/ios.py +++ b/lib/ansible/plugins/terminal/ios.py @@ -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), |