Alter ASA regexes to be byte-strings (#36176) (#36239)

(cherry picked from commit f67ff4a78e)
pull/36250/head
Nathaniel Case 8 years ago committed by GitHub
parent 38717551f8
commit c1dcbb42c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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")
]

Loading…
Cancel
Save