From 4a2ca20b601cbd601e34d6995256b9f37a3d93ec Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 12 Jan 2018 11:34:21 -0500 Subject: [PATCH] fix a minor bug in the JT launch related to support for zero credentials see: https://github.com/ansible/ansible-tower/issues/7841 --- awx/main/models/jobs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/awx/main/models/jobs.py b/awx/main/models/jobs.py index d2ee6fef85..8d6ead2888 100644 --- a/awx/main/models/jobs.py +++ b/awx/main/models/jobs.py @@ -331,6 +331,11 @@ class JobTemplate(UnifiedJobTemplate, JobOptions, SurveyJobTemplateMixin, Resour # not block a provisioning callback from creating/launching jobs. if callback_extra_vars is None: for ask_field_name in set(self.get_ask_mapping().values()): + if ask_field_name == 'ask_credential_on_launch': + # if ask_credential_on_launch is True, it just means it can + # optionally be specified at launch time, not that it's *required* + # to launch + continue if getattr(self, ask_field_name): prompting_needed = True break