From 91118adbd38a4c74fb55a0b5ad9104359fe3349c Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 2 Feb 2026 13:50:39 -0500 Subject: [PATCH] Fix summary_dict None check * https://sonarcloud.io/project/issues?open=AZDmRbWy2PiUXMD3dYoJ&id=ansible_awx --- awx/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 2bbb852bb4..9ea01586c2 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -1230,7 +1230,7 @@ class OrganizationSerializer(BaseSerializer, OpaQueryPathMixin): # to a team. This provides a hint to the ui so it can know to not # display these roles for team role selection. for key in ('admin_role', 'member_role'): - if key in summary_dict.get('object_roles', {}): + if summary_dict and key in summary_dict.get('object_roles', {}): summary_dict['object_roles'][key]['user_only'] = True return summary_dict