use actual ssh executable as it might not be ssh

pull/39618/head
Brian Coca 7 years ago committed by Brian Coca
parent f2db9d59c7
commit 70d89b5487

@ -677,7 +677,7 @@ class Connection(ConnectionBase):
# only when using ssh. Otherwise we can send initial data straightaway. # only when using ssh. Otherwise we can send initial data straightaway.
state = states.index('ready_to_send') state = states.index('ready_to_send')
if b'ssh' in cmd and sudoable: if to_bytes(self.get_option('ssh_executable')) in cmd and sudoable:
if self._play_context.prompt: if self._play_context.prompt:
# We're requesting escalation with a password, so we have to # We're requesting escalation with a password, so we have to
# wait for a password prompt. # wait for a password prompt.

Loading…
Cancel
Save