mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
Merge pull request #2422 from AlanCoding/2401_prompting
Indicate intent to prompt with can_start_without_user_input
This commit is contained in:
@@ -292,7 +292,11 @@ class JobTemplate(UnifiedJobTemplate, JobOptions, ResourceMixin):
|
|||||||
Return whether job template can be used to start a new job without
|
Return whether job template can be used to start a new job without
|
||||||
requiring any user input.
|
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.passwords_needed_to_start and
|
||||||
not self.variables_needed_to_start)
|
not self.variables_needed_to_start)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user