mirror of
https://github.com/ansible/awx.git
synced 2026-05-21 07:47:44 -02:30
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:
@@ -218,7 +218,7 @@ class JobTemplate(UnifiedJobTemplate, JobOptions):
|
|||||||
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 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
|
@property
|
||||||
def variables_needed_to_start(self):
|
def variables_needed_to_start(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user