mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Make sure that if you have variables being required to start that we
return false when determining if the job can start without input
This commit is contained in:
parent
d3416336ed
commit
be7819e3d7
@ -218,7 +218,7 @@ class JobTemplate(UnifiedJobTemplate, JobOptions):
|
||||
Return whether job template can be used to start a new job without
|
||||
requiring any user input.
|
||||
'''
|
||||
return bool(self.credential and not len(self.passwords_needed_to_start))
|
||||
return bool(self.credential and not len(self.passwords_needed_to_start) and not len(self.variables_needed_to_start))
|
||||
|
||||
@property
|
||||
def variables_needed_to_start(self):
|
||||
|
Loading…
Reference in New Issue
Block a user