mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
job cancelation of job templates with surveys wont send extra_vars so don't expect them to
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user