mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 01:44:03 -07:00
Fix stray string in network_cli (#51142)
* Replace loose string that should be a byte string * Replace byte string literals with string literals * These, on the other hand, need to be byte strings
This commit is contained in:
parent
335ee5908d
commit
8d4f7f5b56
17 changed files with 61 additions and 61 deletions
|
@ -30,12 +30,12 @@ from ansible.plugins.terminal import TerminalBase
|
|||
class TerminalModule(TerminalBase):
|
||||
|
||||
terminal_stdout_re = [
|
||||
re.compile(r"[\r\n]?(?:\w+@)?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$")
|
||||
re.compile(br"[\r\n]?(?:\w+@)?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$")
|
||||
]
|
||||
|
||||
terminal_stderr_re = [
|
||||
re.compile(r"[\r\n]Error - "),
|
||||
re.compile(r"[\r\n](?:incomplete|ambiguous|unrecognised|invalid) (?:command|input)", re.I)
|
||||
re.compile(br"[\r\n]Error - "),
|
||||
re.compile(br"[\r\n](?:incomplete|ambiguous|unrecognised|invalid) (?:command|input)", re.I)
|
||||
]
|
||||
|
||||
def on_open_shell(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue