mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 14:05:59 -03:30
Allow creating galaxy credential types without an organization (#16077)
* remove requirement for galaxy credentials to belong to an organization * remove organization check for galaxy credential type
This commit is contained in:
@@ -3102,9 +3102,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):
|
||||
|
||||
Reference in New Issue
Block a user