Merge pull request #3708 from AlanCoding/ancestors_PR

Store vars from set_artifact tasks, pipe data through workflows
This commit is contained in:
Alan Rominger
2016-10-13 15:59:58 -04:00
committed by GitHub
10 changed files with 180 additions and 21 deletions

View File

@@ -893,7 +893,7 @@ class RunJob(BaseTask):
'tower_user_name': job.created_by.username,
})
if job.extra_vars_dict:
if kwargs.get('display', False) and job.job_template and job.job_template.survey_enabled:
if kwargs.get('display', False) and job.job_template:
extra_vars.update(json.loads(job.display_extra_vars()))
else:
extra_vars.update(job.extra_vars_dict)