|
|
@ -30,12 +30,12 @@ from ansible.plugins.terminal import TerminalBase
|
|
|
|
class TerminalModule(TerminalBase):
|
|
|
|
class TerminalModule(TerminalBase):
|
|
|
|
|
|
|
|
|
|
|
|
terminal_stdout_re = [
|
|
|
|
terminal_stdout_re = [
|
|
|
|
re.compile(r"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),
|
|
|
|
re.compile(br"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),
|
|
|
|
re.compile(r"\[\w+\@[\w\-\.]+(?: [^\]])\] ?[>#\$] ?$")
|
|
|
|
re.compile(br"\[\w+\@[\w\-\.]+(?: [^\]])\] ?[>#\$] ?$")
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
terminal_stderr_re = [
|
|
|
|
terminal_stderr_re = [
|
|
|
|
re.compile(r"error:", re.I),
|
|
|
|
re.compile(br"error:", re.I),
|
|
|
|
re.compile(br"Removing.* not allowed, it is being used")
|
|
|
|
re.compile(br"Removing.* not allowed, it is being used")
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|