Merge pull request #5733 from kdelee/fix_my_mistake

Fix overzealous cleanup in awxkit

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-01-22 15:56:42 +00:00
committed by GitHub

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