mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 21:21:21 -03:30
This commit is contained in:
parent
e82de50edb
commit
e8c4b302ad
@ -3271,11 +3271,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