1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

use actual ssh executable as it might not be ssh

This commit is contained in:
Brian Coca 2018-04-24 14:11:08 -04:00 committed by Brian Coca
parent f2db9d59c7
commit 70d89b5487

View file

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