revert 46677 changes (#47044)
This commit is contained in:
parent
c73b2aa415
commit
8a6059ad0a
1 changed files with 1 additions and 2 deletions
|
@ -58,8 +58,7 @@ class TerminalModule(TerminalBase):
|
|||
raise AnsibleConnectionFailure('unable to set terminal parameters')
|
||||
|
||||
def on_become(self, passwd=None):
|
||||
conn_prompt = self._get_prompt()
|
||||
if not conn_prompt or conn_prompt.endswith(b'#'):
|
||||
if self._get_prompt().endswith(b'#'):
|
||||
return
|
||||
|
||||
cmd = {u'command': u'enable'}
|
||||
|
|
Loading…
Reference in a new issue