mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Adding network_cli support in mlnxos (and removing provider) (#33511)
Signed-off-by: Samer Deeb <samerd@mellanox.com>
This commit is contained in:
committed by
John R Barker
parent
e73d3dfe20
commit
48d3cbfc0f
@@ -46,7 +46,7 @@ class TerminalModule(TerminalBase):
|
||||
except AnsibleConnectionFailure:
|
||||
raise AnsibleConnectionFailure('unable to set terminal parameters')
|
||||
|
||||
def on_authorize(self, passwd=None):
|
||||
def on_become(self, passwd=None):
|
||||
if self._get_prompt().endswith(b'#'):
|
||||
return
|
||||
|
||||
@@ -66,7 +66,7 @@ class TerminalModule(TerminalBase):
|
||||
raise AnsibleConnectionFailure(
|
||||
'unable to elevate privilege to enable mode')
|
||||
|
||||
def on_deauthorize(self):
|
||||
def on_unbecome(self):
|
||||
prompt = self._get_prompt()
|
||||
if prompt is None:
|
||||
# if prompt is None most likely the terminal is hung up at a prompt
|
||||
|
||||
Reference in New Issue
Block a user