Merge pull request #2438 from AlanCoding/ask_user_input_creds

Ask user input if credential prompting enabled
This commit is contained in:
Alan Rominger 2018-07-31 15:48:19 -04:00 committed by GitHub
commit 9ff249f5c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -343,11 +343,6 @@ 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