From 2a77b8b4b94dbd4a50824c4d2115446c646ef923 Mon Sep 17 00:00:00 2001 From: Elijah DeLee Date: Wed, 22 Jan 2020 10:23:40 -0500 Subject: [PATCH] Fix overzealous cleanup in awxkit Introduced this problem with 1e796076f55f81a3cc7864efeb03db3b03312112 --- awxkit/awxkit/api/pages/job_templates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awxkit/awxkit/api/pages/job_templates.py b/awxkit/awxkit/api/pages/job_templates.py index d8fc58acb4..11d46cfbfa 100644 --- a/awxkit/awxkit/api/pages/job_templates.py +++ b/awxkit/awxkit/api/pages/job_templates.py @@ -131,6 +131,8 @@ class JobTemplate( inventory=Inventory, project=None, **kwargs): + if not project: + project = Project if not inventory and not kwargs.get('ask_inventory_on_launch', False): inventory = Inventory