Merge pull request #2422 from AlanCoding/2401_prompting

Indicate intent to prompt with can_start_without_user_input
This commit is contained in:
Alan Rominger 2016-06-16 13:03:28 -04:00 committed by GitHub
commit aed2a60dee

View File

@ -292,7 +292,11 @@ class JobTemplate(UnifiedJobTemplate, JobOptions, ResourceMixin):
Return whether job template can be used to start a new job without
requiring any user input.
'''
return (not self.resources_needed_to_start and
prompting_needed = False
for value in self._ask_for_vars_dict().values():
if value:
prompting_needed = True
return (not prompting_needed and
not self.passwords_needed_to_start and
not self.variables_needed_to_start)