diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2015-04-14 14:41:31 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2015-04-14 19:00:15 -0400 |
commit | 2e5bad3385defe4efd8f28e9345b2bf872e6be64 (patch) | |
tree | 346529997493cc6eab02e3e5176749ecbb27d69f | |
parent | b1b78a4fd6283560375564e8bba34fac114aff4a (diff) | |
download | ansible-2e5bad3385defe4efd8f28e9345b2bf872e6be64.tar.gz |
fixed indent when looking at delegate_to vars
-rw-r--r-- | lib/ansible/runner/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 4565b90a04..5b02a9d8f2 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -394,11 +394,11 @@ class Runner(object): 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 |