From 9b80d25a24c9a24baf01f89319ba8e629edee959 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 20 Jan 2015 10:46:53 -0500 Subject: [PATCH] Revert "Make credential required when using a cloud inventory source" This reverts commit 9dab26eb0a66a910e41452e40e74480ed4639588. --- awx/api/serializers.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 42c36e7d53..349185fff1 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -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':