Merge pull request #528 from AlanCoding/fix_dep_update

fix bug with dependent SCM inv updates
This commit is contained in:
Matthew Jones 2017-11-01 09:03:11 -04:00 committed by GitHub
commit f1813c35ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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