mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Alter ASA regexes to be byte-strings (#36176)
This commit is contained in:
@@ -30,12 +30,12 @@ from ansible.plugins.terminal import TerminalBase
|
||||
class TerminalModule(TerminalBase):
|
||||
|
||||
terminal_stdout_re = [
|
||||
re.compile(r"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),
|
||||
re.compile(r"\[\w+\@[\w\-\.]+(?: [^\]])\] ?[>#\$] ?$")
|
||||
re.compile(br"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),
|
||||
re.compile(br"\[\w+\@[\w\-\.]+(?: [^\]])\] ?[>#\$] ?$")
|
||||
]
|
||||
|
||||
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")
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user