diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 3c8ae05c75..b8a7dcfdf9 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -106,7 +106,7 @@ SUMMARIZABLE_FK_FIELDS = { 'source_script': ('name', 'description'), 'role': ('id', 'role_field'), 'notification_template': DEFAULT_SUMMARY_FIELDS, - 'instance_group': {'id', 'name'}, + 'instance_group': {'id', 'name', 'controller_id'}, 'insights_credential': DEFAULT_SUMMARY_FIELDS, } diff --git a/awx/main/access.py b/awx/main/access.py index 825e788f11..7e98d4afcc 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -2037,6 +2037,7 @@ class UnifiedJobAccess(BaseAccess): 'modified_by', 'unified_job_node__workflow_job', 'unified_job_template', + 'instance_group', Prefetch('labels', queryset=Label.objects.all().order_by('name')) )