mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-01 04:30:22 -07:00
clean up of terminal plugins (#21549)
* removes unneeded supports_multiplexing var * refactors terminal_prompts_re to terminal_stdout_re * refactors terminal_errors_re to terminal_stderr_re * updates network_cli unit test cases
This commit is contained in:
parent
c5452eef6f
commit
a6cecef6bc
11 changed files with 26 additions and 59 deletions
|
@ -32,17 +32,15 @@ class TerminalBase(with_metaclass(ABCMeta, object)):
|
|||
A base class for implementing cli connections
|
||||
'''
|
||||
|
||||
terminalprompts_re = []
|
||||
terminal_stdout_re = []
|
||||
|
||||
terminalerrors_re = []
|
||||
terminal_stderr_re = []
|
||||
|
||||
ansi_re = [
|
||||
re.compile(r'(\x1b\[\?1h\x1b=)'),
|
||||
re.compile(r'\x08.')
|
||||
]
|
||||
|
||||
supports_multiplexing = True
|
||||
|
||||
def __init__(self, connection):
|
||||
self._connection = connection
|
||||
|
||||
|
@ -68,7 +66,3 @@ class TerminalBase(with_metaclass(ABCMeta, object)):
|
|||
|
||||
def on_deauthorize(self):
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def guess_network_os(conn):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue