mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Merge pull request #135 from chrismeyersfsu/fix-cancel_job_template_with_survey
job cancelation of job templates with surveys wont send extra_vars so don't expect them to
This commit is contained in:
commit
d21d3ee191
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user