1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Merge pull request #7021 from AlanCoding/alan_source_project_fix

Fix bug just introduced by source_project validation
This commit is contained in:
Alan Rominger 2017-07-12 13:09:42 -04:00 committed by GitHub
commit fbaba9058c

View File

@ -1640,6 +1640,7 @@ class InventorySourceSerializer(UnifiedJobTemplateSerializer, InventorySourceOpt
def validate_source_project(self, value):
if value.scm_type == '':
raise serializers.ValidationError(_("Can not use manual project for SCM-based inventory."))
return value
def validate_source(self, value):
if value == '':