def allowed(self, request, instance=None):
        return not is_deleting(instance)
Allow terminate action if instance not currently being deleted.
dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/project/instances/tables.py/TerminateInstance.allowed