Fix overzealous cleanup in awxkit

Introduced this problem with 1e796076f55f81a3cc7864efeb03db3b03312112
This commit is contained in:
Elijah DeLee 2020-01-22 10:23:40 -05:00
parent 23b2b136d6
commit 2a77b8b4b9

View File

@ -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