mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Tweak of error message wording for model-specific name
This commit is contained in:
parent
c105885c7b
commit
e0a28e32eb
@ -314,8 +314,9 @@ class SurveyJobTemplateMixin(models.Model):
|
||||
# ignored variables does not block manual launch
|
||||
if 'prompts' not in _exclude_errors:
|
||||
errors['extra_vars'] = [_('Variables {list_of_keys} are not allowed on launch. Check the Prompt on Launch setting '+
|
||||
'on the Job Template to include Extra Variables.').format(
|
||||
list_of_keys=six.text_type(', ').join([six.text_type(key) for key in extra_vars.keys()]))]
|
||||
'on the {model_name} to include Extra Variables.').format(
|
||||
list_of_keys=six.text_type(', ').join([six.text_type(key) for key in extra_vars.keys()]),
|
||||
model_name=self._meta.verbose_name.title())]
|
||||
|
||||
return (accepted, rejected, errors)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user