mirror of
https://github.com/ansible/awx.git
synced 2026-07-05 05:18:02 -02:30
Active flag removal: switched from using mark_inactive to delete calls
This commit is contained in:
@@ -265,7 +265,7 @@ def migrate_children_from_inactive_group_to_parent_groups(sender, **kwargs):
|
||||
if inventory_source_pk:
|
||||
try:
|
||||
inventory_source = InventorySource.objects.get(pk=inventory_source_pk, active=True)
|
||||
inventory_source.mark_inactive()
|
||||
inventory_source.delete()
|
||||
except InventorySource.DoesNotExist:
|
||||
pass
|
||||
inventory_pk = getattr(instance, '_saved_inventory_pk', None)
|
||||
|
||||
Reference in New Issue
Block a user