From 1c97cb202eceefbd6d599d57401b5e8c5915a9af Mon Sep 17 00:00:00 2001 From: Chris Church Date: Thu, 12 Sep 2013 03:40:54 -0400 Subject: [PATCH] Skip SCM URL validation for projects without SCM. --- awx/main/serializers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/main/serializers.py b/awx/main/serializers.py index 4ef1793bf6..cecf754c3d 100644 --- a/awx/main/serializers.py +++ b/awx/main/serializers.py @@ -308,6 +308,8 @@ class ProjectSerializer(BaseSerializer): scm_username = attrs.get('scm_username', '') or '' scm_password = attrs.get('scm_password', '') or '' scm_url = unicode(attrs.get(source, None) or '') + if not scm_type: + return attrs try: if scm_username and scm_password: scm_url = update_scm_url(scm_type, scm_url, scm_username,