|
|
|
@ -451,14 +451,14 @@ class Connection(NetworkConnectionBase):
|
|
|
|
|
|
|
|
|
|
self.receive(prompts=terminal_initial_prompt, answer=terminal_initial_answer, newline=newline, check_all=check_all)
|
|
|
|
|
|
|
|
|
|
self.queue_message('vvvv', 'firing event: on_open_shell()')
|
|
|
|
|
self._terminal.on_open_shell()
|
|
|
|
|
|
|
|
|
|
if self._play_context.become and self._play_context.become_method == 'enable':
|
|
|
|
|
self.queue_message('vvvv', 'firing event: on_become')
|
|
|
|
|
auth_pass = self._play_context.become_pass
|
|
|
|
|
self._terminal.on_become(passwd=auth_pass)
|
|
|
|
|
|
|
|
|
|
self.queue_message('vvvv', 'firing event: on_open_shell()')
|
|
|
|
|
self._terminal.on_open_shell()
|
|
|
|
|
|
|
|
|
|
self.queue_message('vvvv', 'ssh connection has completed successfully')
|
|
|
|
|
|
|
|
|
|
return self
|
|
|
|
|