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

Merge pull request #11140 from RadishTheHut/connection_info

Fix for task_executor on OS X
This commit is contained in:
Brian Coca 2015-06-03 09:47:04 -04:00
commit 74a537ede0

View file

@ -380,7 +380,7 @@ class TaskExecutor:
conn_type = self._connection_info.connection
if conn_type == 'smart':
conn_type = 'ssh'
if sys.platform.startswith('darwin') and self._connection_info.remote_pass:
if sys.platform.startswith('darwin') and self._connection_info.password:
# due to a current bug in sshpass on OSX, which can trigger
# a kernel panic even for non-privileged users, we revert to
# paramiko on that OS when a SSH password is specified