diff options
author | Ricardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com> | 2017-04-21 15:30:23 +0200 |
---|---|---|
committer | Ricardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com> | 2017-04-21 15:31:17 +0200 |
commit | ee19b199844e92ab18f83faaec882dd1e6dc7bdd (patch) | |
tree | 39665993c41215e6f8da7901516ec6a5aa3d3177 | |
parent | a1c0c1582b94440e1b76e22f1206b37008a25f43 (diff) | |
download | ansible-ee19b199844e92ab18f83faaec882dd1e6dc7bdd.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
(cherry picked from commit 8517fbf9361269ecc3525ab1b8d861a7447ac6ae)
-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), |