mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
Create activity stream event on group delete
Normally this is bypassed for recursive deletes, this manually creates one beyond the bypass
This commit is contained in:
@@ -524,7 +524,7 @@ class Group(CommonModelNameNotUnique):
|
|||||||
def delete_recursive(self):
|
def delete_recursive(self):
|
||||||
from awx.main.utils import ignore_inventory_computed_fields
|
from awx.main.utils import ignore_inventory_computed_fields
|
||||||
from awx.main.tasks import update_inventory_computed_fields
|
from awx.main.tasks import update_inventory_computed_fields
|
||||||
from awx.main.signals import disable_activity_stream
|
from awx.main.signals import disable_activity_stream, activity_stream_delete
|
||||||
|
|
||||||
|
|
||||||
def mark_actual():
|
def mark_actual():
|
||||||
@@ -582,7 +582,7 @@ class Group(CommonModelNameNotUnique):
|
|||||||
with ignore_inventory_computed_fields():
|
with ignore_inventory_computed_fields():
|
||||||
with disable_activity_stream():
|
with disable_activity_stream():
|
||||||
mark_actual()
|
mark_actual()
|
||||||
|
activity_stream_delete(None, self)
|
||||||
|
|
||||||
def update_computed_fields(self):
|
def update_computed_fields(self):
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user