job cancelation of job templates with surveys wont send extra_vars so don't expect them to

This commit is contained in:
Chris Meyers
2015-04-13 14:47:12 -04:00
parent fd09cc3726
commit 6698fb542f

View File

@@ -1472,7 +1472,7 @@ class JobSerializer(UnifiedJobSerializer, JobOptionsSerializer):
ret['job_template'] = None
if obj.job_template and obj.job_template.survey_enabled:
if ret['extra_vars']:
if 'extra_vars' in ret:
try:
extra_vars = json.loads(ret['extra_vars'])
for key in obj.job_template.survey_password_variables():