1
0
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:
Matthew Jones 2014-10-03 14:16:50 -04:00
parent d3416336ed
commit be7819e3d7

View File

@ -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):