Skip to content

Commit

Permalink
Handle delegate_to case for local connections in hosts file
Browse files Browse the repository at this point in the history
  • Loading branch information
skinp committed Feb 23, 2013
1 parent 4c0e672 commit 2b4ddfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ansible/runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ def _executor_internal_inner(self, host, module_name, module_args, inject, port,
actual_port = delegate_info.get('ansible_ssh_port', port)
actual_user = delegate_info.get('ansible_ssh_user', actual_user)
actual_pass = delegate_info.get('ansible_ssh_pass', actual_pass)
actual_transport = delegate_info.get('ansible_connection', self.transport)
for i in delegate_info:
if i.startswith("ansible_") and i.endswith("_interpreter"):
inject[i] = delegate_info[i]
Expand Down

0 comments on commit 2b4ddfb

Please sign in to comment.