mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
remove requirement for galaxy credentials to belong to an organization (#16075)
This commit is contained in:
parent
902f2634a6
commit
09b539bc34
@ -3027,11 +3027,6 @@ class CredentialSerializer(BaseSerializer):
|
||||
ret.remove(field)
|
||||
return ret
|
||||
|
||||
def validate_organization(self, org):
|
||||
if self.instance and (not self.instance.managed) and self.instance.credential_type.kind == 'galaxy' and org is None:
|
||||
raise serializers.ValidationError(_("Galaxy credentials must be owned by an Organization."))
|
||||
return org
|
||||
|
||||
def validate_credential_type(self, credential_type):
|
||||
if self.instance and credential_type.pk != self.instance.credential_type.pk:
|
||||
for related_objects in (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user