mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-13 03:39:11 -07:00
Promote get_prompt to live in network_cli instead of cliconf (#33880)
This removes the immediate need for a cliconf plugin to use network_cli
This commit is contained in:
parent
5578193ae4
commit
67a8ff47aa
2 changed files with 4 additions and 4 deletions
|
@ -106,6 +106,10 @@ class Connection(ConnectionBase):
|
|||
raise AttributeError("'%s' object has no attribute '%s'" % (self.__class__.__name__, name))
|
||||
return getattr(self._cliconf, name)
|
||||
|
||||
def get_prompt(self):
|
||||
"""Returns the current prompt from the device"""
|
||||
return self._matched_prompt
|
||||
|
||||
def exec_command(self, cmd, in_data=None, sudoable=True):
|
||||
# this try..except block is just to handle the transition to supporting
|
||||
# network_cli as a toplevel connection. Once connection=local is gone,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue