mirror of
https://github.com/ansible/awx.git
synced 2026-01-26 16:11:30 -03:30
indicate only intent to prompt with can_start_without_user_input
This commit is contained in:
parent
ab6c5f7b8d
commit
502267484f
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user