Merge pull request #2669 from paradegoat/issue-2370

Updated JT project-related error message

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot]
2018-11-13 20:22:31 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -315,7 +315,7 @@ class JobTemplate(UnifiedJobTemplate, JobOptions, SurveyJobTemplateMixin, Resour
if self.inventory is None and not self.ask_inventory_on_launch:
validation_errors['inventory'] = [_("Job Template must provide 'inventory' or allow prompting for it."),]
if self.project is None:
validation_errors['project'] = [_("Job types 'run' and 'check' must have assigned a project."),]
validation_errors['project'] = [_("Job Templates must have a project assigned."),]
return validation_errors
@property