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:
parent
f2db9d59c7
commit
70d89b5487
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue