From 8517fbf9361269ecc3525ab1b8d861a7447ac6ae Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 21 Apr 2017 15:30:23 +0200 Subject: [PATCH] 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 --- lib/ansible/plugins/terminal/ios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),