Merge pull request #6218 from AlanCoding/scm_inv_cancel

SCM inventory cancel propagation
This commit is contained in:
Alan Rominger
2017-05-10 15:52:31 -04:00
committed by GitHub
4 changed files with 52 additions and 6 deletions

View File

@@ -1381,6 +1381,8 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions, JobNotificationMixin):
res = super(InventoryUpdate, self).cancel(job_explanation=job_explanation)
if res:
map(lambda x: x.cancel(job_explanation=self._build_job_explanation()), self.get_dependent_jobs())
if self.launch_type != 'scm' and self.source_project_update:
self.source_project_update.cancel(job_explanation=job_explanation)
return res