mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
add isolated job controller_id to summary fields
This commit is contained in:
@@ -106,7 +106,7 @@ SUMMARIZABLE_FK_FIELDS = {
|
|||||||
'source_script': ('name', 'description'),
|
'source_script': ('name', 'description'),
|
||||||
'role': ('id', 'role_field'),
|
'role': ('id', 'role_field'),
|
||||||
'notification_template': DEFAULT_SUMMARY_FIELDS,
|
'notification_template': DEFAULT_SUMMARY_FIELDS,
|
||||||
'instance_group': {'id', 'name'},
|
'instance_group': {'id', 'name', 'controller_id'},
|
||||||
'insights_credential': DEFAULT_SUMMARY_FIELDS,
|
'insights_credential': DEFAULT_SUMMARY_FIELDS,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2037,6 +2037,7 @@ class UnifiedJobAccess(BaseAccess):
|
|||||||
'modified_by',
|
'modified_by',
|
||||||
'unified_job_node__workflow_job',
|
'unified_job_node__workflow_job',
|
||||||
'unified_job_template',
|
'unified_job_template',
|
||||||
|
'instance_group',
|
||||||
Prefetch('labels', queryset=Label.objects.all().order_by('name'))
|
Prefetch('labels', queryset=Label.objects.all().order_by('name'))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user