1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

no launch config errors with replacable ASK credential

This commit is contained in:
AlanCoding 2018-06-04 11:19:22 -04:00
parent 7ef32a8827
commit 648ec3141b
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -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.')