Browse code

fixed indent when looking at delegate_to vars

Brian Coca authored on 2015/04/15 03:41:31
Showing 1 changed files
... ...
@@ -394,11 +394,11 @@ class Runner(object):
394 394
                 if inject['hostvars'][host].get('ansible_ssh_user'):
395 395
                     # user for delegate host in inventory
396 396
                     thisuser = inject['hostvars'][host].get('ansible_ssh_user')
397
-                else:
398
-                    # look up the variables for the host directly from inventory
399
-                    host_vars = self.inventory.get_variables(host, vault_password=self.vault_pass)
400
-                    if 'ansible_ssh_user' in host_vars:
401
-                        thisuser = host_vars['ansible_ssh_user']
397
+            else:
398
+                # look up the variables for the host directly from inventory
399
+                host_vars = self.inventory.get_variables(host, vault_password=self.vault_pass)
400
+                if 'ansible_ssh_user' in host_vars:
401
+                    thisuser = host_vars['ansible_ssh_user']
402 402
         except errors.AnsibleError, e:
403 403
             # the hostname was not found in the inventory, so
404 404
             # we just ignore this and try the next method