From 2837200aea1ecd4ab1862136146c6589aee027aa Mon Sep 17 00:00:00 2001 From: James Mighion Date: Wed, 27 Sep 2017 21:35:14 -0700 Subject: [PATCH] Adding new stdout regex to allow local password changes. Adding stderr regex to catch more errors. (#30994) --- lib/ansible/plugins/terminal/aruba.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/terminal/aruba.py b/lib/ansible/plugins/terminal/aruba.py index 6807641c972..a27f9c5799f 100644 --- a/lib/ansible/plugins/terminal/aruba.py +++ b/lib/ansible/plugins/terminal/aruba.py @@ -30,11 +30,14 @@ from ansible.plugins.terminal import TerminalBase class TerminalModule(TerminalBase): terminal_stdout_re = [ - re.compile(br"[\r\n]?[\w]*\(.+\) ?#(?:\s*)$") + re.compile(br"[\r\n]?[\w]*\(.+\) ?#(?:\s*)$"), + re.compile(br"[pP]assword:$") ] terminal_stderr_re = [ re.compile(br"% ?Error"), + re.compile(br"Error:", re.M), + re.compile(br"^% \w+", re.M), re.compile(br"% ?Bad secret"), re.compile(br"invalid input", re.I), re.compile(br"(?:incomplete|ambiguous) command", re.I),