In case job_template is null handle that case for vars prompt

This commit is contained in:
Matthew Jones
2014-05-12 14:50:58 -04:00
parent 22984f91cc
commit a19f388e2d
+3 -1
View File
@@ -232,7 +232,9 @@ class Job(UnifiedJob, JobOptions):
@property @property
def vars_prompt_on_launch(self): def vars_prompt_on_launch(self):
return self.job_template.vars_prompt_on_launch if self.job_template is not None:
return self.job_template.vars_prompt_on_launch
return None
@property @property
def passwords_needed_to_start(self): def passwords_needed_to_start(self):