revert 46677 changes (#47044)

pull/47054/head
Sumit Jaiswal 6 years ago committed by GitHub
parent c73b2aa415
commit 8a6059ad0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,8 +58,7 @@ class TerminalModule(TerminalBase):
raise AnsibleConnectionFailure('unable to set terminal parameters') raise AnsibleConnectionFailure('unable to set terminal parameters')
def on_become(self, passwd=None): def on_become(self, passwd=None):
conn_prompt = self._get_prompt() if self._get_prompt().endswith(b'#'):
if not conn_prompt or conn_prompt.endswith(b'#'):
return return
cmd = {u'command': u'enable'} cmd = {u'command': u'enable'}

Loading…
Cancel
Save