Revert "Make credential required when using a cloud inventory source"

This reverts commit 9dab26eb0a66a910e41452e40e74480ed4639588.
This commit is contained in:
Matthew Jones 2015-01-20 10:46:53 -05:00
parent 73890a0eee
commit 9b80d25a24

View File

@ -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':