mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 15:08:03 -03:30
Add more fields to .only since they get referenced
This commit is contained in:
parent
30997b30b6
commit
0f5629b514
@ -511,7 +511,7 @@ class JobEvent(BasePlaybookEvent):
|
||||
|
||||
from awx.main.models import Host, JobHostSummary # circular import
|
||||
|
||||
all_hosts = Host.objects.filter(pk__in=self.host_map.values()).only('id')
|
||||
all_hosts = Host.objects.filter(pk__in=self.host_map.values()).only('id', 'name', 'last_job_id', 'last_job_host_summary_id')
|
||||
existing_host_ids = set(h.id for h in all_hosts)
|
||||
|
||||
summaries = dict()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user