From 8ae58f7ea3ee237b94e98f38be894e5618e535a0 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 15 Jun 2015 11:26:45 -0400 Subject: [PATCH] fixed executable, correctly this time --- lib/ansible/plugins/connections/local.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/connections/local.py b/lib/ansible/plugins/connections/local.py index 5915569b02..273bf1718f 100644 --- a/lib/ansible/plugins/connections/local.py +++ b/lib/ansible/plugins/connections/local.py @@ -25,6 +25,8 @@ import subprocess #import select #import fcntl +import ansible.constants as C + from ansible.errors import AnsibleError, AnsibleFileNotFound from ansible.plugins.connections import ConnectionBase @@ -46,7 +48,7 @@ class Connection(ConnectionBase): self._connected = True return self - def exec_command(self, cmd, tmp_path, in_data=None): + def exec_command(self, cmd, tmp_path, in_data=None, sudoable=True): ''' run a command on the local host ''' super(Connection, self).exec_command(cmd, tmp_path, in_data=in_data) @@ -59,7 +61,7 @@ class Connection(ConnectionBase): if in_data: raise AnsibleError("Internal Error: this module does not support optimized module pipelining") - executable = self._connection_info.executable.split()[0] if self._connection_info.executable else None + executable = C.DEFAULT_EXECUTABLE.split()[0] if C.DEFAULT_EXECUTABLE else None self._display.vvv("{0} EXEC {1}".format(self._connection_info.remote_addr, cmd)) # FIXME: cwd= needs to be set to the basedir of the playbook