From e0a28e32eba2e5487fedf601d58eb5aac1977e00 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 13 Nov 2018 13:16:43 -0500 Subject: [PATCH] Tweak of error message wording for model-specific name --- awx/main/models/mixins.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/main/models/mixins.py b/awx/main/models/mixins.py index 58ced65010..d6dbc3e4fa 100644 --- a/awx/main/models/mixins.py +++ b/awx/main/models/mixins.py @@ -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)