From d7ae95684c92b7c0aa751bf334d9fc3606eabd0a Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 30 Oct 2017 11:59:27 -0400 Subject: [PATCH] fix bug with dependent SCM inv updates This change causes all SCM inventory updates to run a local project sync unless they were specifically marked as a dependency of an already-existing project update, as opposed to just doing so on manual launch types. This should be a more robust criteria. --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index b8322fdcc5..d740f88d4b 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1961,7 +1961,7 @@ class RunInventoryUpdate(BaseTask): source_project = None if inventory_update.inventory_source: source_project = inventory_update.inventory_source.source_project - if (inventory_update.source=='scm' and inventory_update.launch_type=='manual' and source_project): + if (inventory_update.source=='scm' and inventory_update.launch_type!='scm' and source_project): request_id = '' if self.request.id is None else self.request.id local_project_sync = source_project.create_project_update( launch_type="sync",