8049-expose execution node var for playbook (#13418)

Expose execution node var for playbook

---------

Co-authored-by: Lucas Benedito <lbenedit@redhat.com>
This commit is contained in:
lucas-benedito
2023-03-17 20:12:25 +01:00
committed by GitHub
parent e15f4de0dd
commit 7deddabea6
2 changed files with 8 additions and 1 deletions

View File

@@ -831,6 +831,9 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
for name in JOB_VARIABLE_PREFIXES:
r['{}_job_template_id'.format(name)] = self.job_template.pk
r['{}_job_template_name'.format(name)] = self.job_template.name
if self.execution_node:
for name in JOB_VARIABLE_PREFIXES:
r['{}_execution_node'.format(name)] = self.execution_node
return r
'''