mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 19:07:39 -02:30
Tweak comment
This commit is contained in:
@@ -2561,7 +2561,7 @@ class JobTemplateCallback(GenericAPIView):
|
|||||||
return set([hosts.get(name__in=remote_hosts)])
|
return set([hosts.get(name__in=remote_hosts)])
|
||||||
except (Host.DoesNotExist, Host.MultipleObjectsReturned):
|
except (Host.DoesNotExist, Host.MultipleObjectsReturned):
|
||||||
pass
|
pass
|
||||||
# Next, try matching based on name or ansible_ssh_host variable.
|
# Next, try matching based on name or ansible_host variables.
|
||||||
matches = set()
|
matches = set()
|
||||||
for host in hosts:
|
for host in hosts:
|
||||||
for host_var in ['ansible_ssh_host', 'ansible_host']:
|
for host_var in ['ansible_ssh_host', 'ansible_host']:
|
||||||
|
|||||||
Reference in New Issue
Block a user