From 8b13c75f2ef3eb005ca63d2e30e7e1cd1344ba60 Mon Sep 17 00:00:00 2001 From: Peter Braun Date: Thu, 28 Aug 2025 15:15:36 +0200 Subject: [PATCH] Allow creating galaxy credential types without an organization (#16077) (#7074) * remove requirement for galaxy credentials to belong to an organization * remove organization check for galaxy credential type --- awx/api/serializers.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index e92f56abac..3e35a465a3 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -3346,9 +3346,6 @@ class CredentialSerializerCreate(CredentialSerializer): if attrs.get('team'): attrs['organization'] = attrs['team'].organization - if 'credential_type' in attrs and attrs['credential_type'].kind == 'galaxy' and list(owner_fields) != ['organization']: - raise serializers.ValidationError({"organization": _("Galaxy credentials must be owned by an Organization.")}) - return super(CredentialSerializerCreate, self).validate(attrs) def create(self, validated_data):