Skip to content

Commit

Permalink
Merge pull request ansible#10701 from bcoca/delegate_to_fix_indent
Browse files Browse the repository at this point in the history
fixed indent when looking at delegate_to vars
  • Loading branch information
bcoca committed Apr 14, 2015
2 parents 0da7834 + 09efba2 commit dfce750
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/ansible/runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,11 @@ def _compute_delegate_user(self, host, inject):
if inject['hostvars'][host].get('ansible_ssh_user'):
# user for delegate host in inventory
thisuser = inject['hostvars'][host].get('ansible_ssh_user')
else:
# look up the variables for the host directly from inventory
host_vars = self.inventory.get_variables(host, vault_password=self.vault_pass)
if 'ansible_ssh_user' in host_vars:
thisuser = host_vars['ansible_ssh_user']
else:
# look up the variables for the host directly from inventory
host_vars = self.inventory.get_variables(host, vault_password=self.vault_pass)
if 'ansible_ssh_user' in host_vars:
thisuser = host_vars['ansible_ssh_user']
except errors.AnsibleError, e:
# the hostname was not found in the inventory, so
# we just ignore this and try the next method
Expand Down

0 comments on commit dfce750

Please sign in to comment.