indicate only intent to prompt with can_start_without_user_input

This commit is contained in:
AlanCoding 2016-06-15 10:52:25 -04:00
parent ab6c5f7b8d
commit 502267484f

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)