Skip to content

Commit

Permalink
Adding new stdout regex to allow local password changes. Adding stder…
Browse files Browse the repository at this point in the history
…r regex to catch more errors. (ansible#30994)
  • Loading branch information
jmighion authored and ganeshrn committed Sep 28, 2017
1 parent 9f5cba8 commit 2837200
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ansible/plugins/terminal/aruba.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@
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),
Expand Down

0 comments on commit 2837200

Please sign in to comment.