From be7819e3d789175b600b164408762145b05454b5 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Fri, 3 Oct 2014 14:16:50 -0400 Subject: [PATCH] Make sure that if you have variables being required to start that we return false when determining if the job can start without input --- awx/main/models/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/jobs.py b/awx/main/models/jobs.py index 2abd9ad68a..a28f1efd44 100644 --- a/awx/main/models/jobs.py +++ b/awx/main/models/jobs.py @@ -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):