From 648ec3141b00f62e201c573aec58907223c7823d Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 4 Jun 2018 11:19:22 -0400 Subject: [PATCH] no launch config errors with replacable ASK credential --- awx/main/models/jobs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/main/models/jobs.py b/awx/main/models/jobs.py index dd05e2359a..7d195b78ac 100644 --- a/awx/main/models/jobs.py +++ b/awx/main/models/jobs.py @@ -402,7 +402,9 @@ class JobTemplate(UnifiedJobTemplate, JobOptions, SurveyJobTemplateMixin, Resour if 'prompts' not in exclude_errors: errors_dict[field_name] = _('Field is not configured to prompt on launch.').format(field_name=field_name) - if 'prompts' not in exclude_errors and self.passwords_needed_to_start: + if ('prompts' not in exclude_errors and + (not getattr(self, 'ask_credential_on_launch', False)) and + self.passwords_needed_to_start): errors_dict['passwords_needed_to_start'] = _( 'Saved launch configurations cannot provide passwords needed to start.')