From 6d4b4cac3721e459ca77fdd2bb05038197ac91a5 Mon Sep 17 00:00:00 2001 From: Marcelo Moreira de Mello Date: Wed, 22 Sep 2021 22:13:43 -0400 Subject: [PATCH] Project updates must run on controller nodes For project updates jobs triggered due a job template run, we must ensure that project_update job to run on at the same controller which dispatched the original job template, otherwise the job might fail for being unable to find the playbook YAML file. --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 0f65b877da..21727bf350 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1865,7 +1865,7 @@ class RunJob(BaseTask): if sync_needs: pu_ig = job.instance_group - pu_en = job.execution_node + pu_en = Instance.objects.me().hostname sync_metafields = dict( launch_type="sync",