mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
* remove requirement for galaxy credentials to belong to an organization * remove organization check for galaxy credential type
This commit is contained in:
parent
36ec5efc88
commit
8b13c75f2e
@ -3346,9 +3346,6 @@ class CredentialSerializerCreate(CredentialSerializer):
|
|||||||
if attrs.get('team'):
|
if attrs.get('team'):
|
||||||
attrs['organization'] = attrs['team'].organization
|
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)
|
return super(CredentialSerializerCreate, self).validate(attrs)
|
||||||
|
|
||||||
def create(self, validated_data):
|
def create(self, validated_data):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user