Skip to content

Commit

Permalink
use actual ssh executable as it might not be ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed May 2, 2018
1 parent f2db9d5 commit 70d89b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/connection/ssh.py
Expand Up @@ -677,7 +677,7 @@ def _bare_run(self, cmd, in_data, sudoable=True, checkrc=True):
# only when using ssh. Otherwise we can send initial data straightaway.

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:
# We're requesting escalation with a password, so we have to
# wait for a password prompt.
Expand Down

0 comments on commit 70d89b5

Please sign in to comment.