Put survey passwords in job field

This commit is contained in:
AlanCoding
2016-08-05 15:11:28 -04:00
parent 8be9e2b13e
commit 17ac2cee42
6 changed files with 82 additions and 11 deletions

View File

@@ -1980,7 +1980,7 @@ class JobSerializer(UnifiedJobSerializer, JobOptionsSerializer):
return ret
if 'job_template' in ret and not obj.job_template:
ret['job_template'] = None
if obj.job_template and obj.job_template.survey_enabled and 'extra_vars' in ret:
if 'extra_vars' in ret:
ret['extra_vars'] = obj.display_extra_vars()
return ret