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.
pull/11140/head
Patrick McConnell 10 years ago
parent 3e2e81d896
commit a899f8f016

@ -380,7 +380,7 @@ class TaskExecutor:
conn_type = self._connection_info.connection conn_type = self._connection_info.connection
if conn_type == 'smart': if conn_type == 'smart':
conn_type = 'ssh' 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 # due to a current bug in sshpass on OSX, which can trigger
# a kernel panic even for non-privileged users, we revert to # a kernel panic even for non-privileged users, we revert to
# paramiko on that OS when a SSH password is specified # paramiko on that OS when a SSH password is specified

Loading…
Cancel
Save