mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 09:48:51 -03:30
Tweak of error message wording for model-specific name
This commit is contained in:
committed by
Jake McDermott
parent
c105885c7b
commit
e0a28e32eb
@@ -314,8 +314,9 @@ class SurveyJobTemplateMixin(models.Model):
|
|||||||
# ignored variables does not block manual launch
|
# ignored variables does not block manual launch
|
||||||
if 'prompts' not in _exclude_errors:
|
if 'prompts' not in _exclude_errors:
|
||||||
errors['extra_vars'] = [_('Variables {list_of_keys} are not allowed on launch. Check the Prompt on Launch setting '+
|
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(
|
'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()]))]
|
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)
|
return (accepted, rejected, errors)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user