mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
fix bug just introduced by source_project validation
This commit is contained in:
@@ -1640,6 +1640,7 @@ class InventorySourceSerializer(UnifiedJobTemplateSerializer, InventorySourceOpt
|
|||||||
def validate_source_project(self, value):
|
def validate_source_project(self, value):
|
||||||
if value.scm_type == '':
|
if value.scm_type == '':
|
||||||
raise serializers.ValidationError(_("Can not use manual project for SCM-based inventory."))
|
raise serializers.ValidationError(_("Can not use manual project for SCM-based inventory."))
|
||||||
|
return value
|
||||||
|
|
||||||
def validate_source(self, value):
|
def validate_source(self, value):
|
||||||
if value == '':
|
if value == '':
|
||||||
|
|||||||
Reference in New Issue
Block a user