From a899f8f01655bdaca349c19e73d4e9bc0d04e095 Mon Sep 17 00:00:00 2001 From: Patrick McConnell Date: Wed, 3 Jun 2015 07:26:18 +0200 Subject: [PATCH] Fix for task_executor on OS X I get this exception during the setup task: AttributeError: 'ConnectionInformation' object has no attribute 'remote_pass' I believe it is supposed to be looking at the password attribute. Either that or we should create a remote_pass attribute in ConnectionInformation. --- lib/ansible/executor/task_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 9ba2b6bca5..69cbb63f47 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -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