1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

only consider update_on_launch inventory sources

* When generating dependencies (i.e. dynamically launching Project
Update and Inventory Update) only create the dynamic dependencies if
update_on_launch is True.
This commit is contained in:
Chris Meyers 2017-05-16 13:18:15 -04:00
parent 7fd406eaad
commit 9b771ae907

View File

@ -125,7 +125,7 @@ class TaskManager():
for task in all_sorted_tasks:
if isinstance(task, Job):
inventory_ids.add(task.inventory_id)
return [invsrc for invsrc in InventorySource.objects.filter(inventory_id__in=inventory_ids)]
return [invsrc for invsrc in InventorySource.objects.filter(inventory_id__in=inventory_ids, update_on_launch=True)]
def spawn_workflow_graph_jobs(self, workflow_jobs):
for workflow_job in workflow_jobs: