mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
only cancel deps if we can cancel the inv update
This commit is contained in:
parent
f3e514246e
commit
c1bace87ab
@ -1279,7 +1279,8 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions, JobNotificationMixin):
|
||||
|
||||
def cancel(self):
|
||||
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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user