

def check_cluster_delete(cluster_id, **kwargs):
    cluster = api.get_cluster(cluster_id)
    acl.check_tenant_for_delete(context.current(), cluster)
    acl.check_protected_from_delete(cluster)

dataset/ETHPy150Open openstack/sahara/sahara/service/validations/clusters.py check_cluster_delete/original