From a401320cb533c712291c65220dfe00b0a2c7c3b8 Mon Sep 17 00:00:00 2001
From: Benjamin Bertrand <benjamin.bertrand@ess.eu>
Date: Tue, 25 Feb 2020 09:05:28 +0100
Subject: [PATCH] Fix inventory update

The trigger functions were refactored but job_template was passed
instead of inventory_source.

JIRA INFRA-1792 #action In Progress
---
 app/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/utils.py b/app/utils.py
index 0533c6a..3056d0e 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -331,8 +331,8 @@ def trigger_inventory_update():
         "trigger_inventory_update",
         queue_name="high",
         func="launch_awx_job",
-        job_template=inventory_source,
         resource="inventory_source",
+        inventory_source=inventory_source,
     )
 
 
-- 
GitLab