better scm inv restriction error message

This commit is contained in:
Chris Meyers 2017-08-08 10:42:38 -04:00
parent 6a862269b7
commit 4e2f075fa6

View File

@ -1400,7 +1400,7 @@ class InventorySource(UnifiedJobTemplate, InventorySourceOptions):
Q(inventory=self.inventory,
update_on_project_update=True, source='scm') &
~Q(id=self.id)).exists():
raise ValidationError(_("More than one SCM-based inventory source with update on project update on per-inventory not allowed."))
raise ValidationError(_("More than one SCM-based inventory source with update on project update per-inventory not allowed."))
return self.update_on_project_update
def clean_update_on_launch(self):