Try to escalate before on_open_shell to work around ios (#63571)

pull/64124/head
Nathaniel Case 5 years ago committed by GitHub
parent 0a38460176
commit 0cd2ad5880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save