mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
only cancel deps if we can cancel the inv update
This commit is contained in:
@@ -1279,7 +1279,8 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions, JobNotificationMixin):
|
|||||||
|
|
||||||
def cancel(self):
|
def cancel(self):
|
||||||
res = super(InventoryUpdate, self).cancel()
|
res = super(InventoryUpdate, self).cancel()
|
||||||
map(lambda x: x.cancel(), Job.objects.filter(dependent_jobs__in=[self.id]))
|
if res:
|
||||||
|
map(lambda x: x.cancel(), Job.objects.filter(dependent_jobs__in=[self.id]))
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user