Adding new stdout regex to allow local password changes. Adding stderr regex to catch more errors. (#30994)
This commit is contained in:
parent
9f5cba84b8
commit
2837200aea
1 changed files with 4 additions and 1 deletions
|
@ -30,11 +30,14 @@ from ansible.plugins.terminal import TerminalBase
|
||||||
class TerminalModule(TerminalBase):
|
class TerminalModule(TerminalBase):
|
||||||
|
|
||||||
terminal_stdout_re = [
|
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 = [
|
terminal_stderr_re = [
|
||||||
re.compile(br"% ?Error"),
|
re.compile(br"% ?Error"),
|
||||||
|
re.compile(br"Error:", re.M),
|
||||||
|
re.compile(br"^% \w+", re.M),
|
||||||
re.compile(br"% ?Bad secret"),
|
re.compile(br"% ?Bad secret"),
|
||||||
re.compile(br"invalid input", re.I),
|
re.compile(br"invalid input", re.I),
|
||||||
re.compile(br"(?:incomplete|ambiguous) command", re.I),
|
re.compile(br"(?:incomplete|ambiguous) command", re.I),
|
||||||
|
|
Loading…
Reference in a new issue