mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
More .all() fixes re active flag removal
This commit is contained in:
parent
6323e023dc
commit
fc25cb7e95
@ -2142,7 +2142,7 @@ class JobTemplateCallback(GenericAPIView):
|
||||
pass
|
||||
# Next, try matching based on name or ansible_ssh_host variable.
|
||||
matches = set()
|
||||
for host in qs:
|
||||
for host in qs.all():
|
||||
ansible_ssh_host = host.variables_dict.get('ansible_ssh_host', '')
|
||||
if ansible_ssh_host in remote_hosts:
|
||||
matches.add(host)
|
||||
@ -2152,7 +2152,7 @@ class JobTemplateCallback(GenericAPIView):
|
||||
if len(matches) == 1:
|
||||
return matches
|
||||
# Try to resolve forward addresses for each host to find matches.
|
||||
for host in qs:
|
||||
for host in qs.all():
|
||||
hostnames = set([host.name])
|
||||
ansible_ssh_host = host.variables_dict.get('ansible_ssh_host', '')
|
||||
if ansible_ssh_host:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user