mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
Add more fields to .only since they get referenced
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user