mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Revert "Make credential required when using a cloud inventory source"
This reverts commit 9dab26eb0a66a910e41452e40e74480ed4639588.
This commit is contained in:
parent
73890a0eee
commit
9b80d25a24
@ -1024,13 +1024,6 @@ class InventorySourceOptionsSerializer(BaseSerializer):
|
||||
# FIXME
|
||||
return attrs
|
||||
|
||||
def validate_credential(self, attrs, source):
|
||||
src = attrs.get('source', '')
|
||||
if src in CLOUD_PROVIDERS:
|
||||
if attrs.get(source, None) is None:
|
||||
raise serializers.ValidationError("Credential is required for Cloud source types")
|
||||
return attrs
|
||||
|
||||
def validate_source_script(self, attrs, source):
|
||||
src = attrs.get(source, None)
|
||||
if 'source' in attrs and attrs.get('source', '') == 'custom':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user