def delete_trust_from_cluster(cluster):
    ctx = context.current()
    cluster = conductor.cluster_get(ctx, cluster)
    if CONF.use_identity_api_v3 and cluster.trust_id:
        keystone_auth = keystone.auth_for_admin(trust_id=cluster.trust_id)
        delete_trust(keystone_auth, cluster.trust_id)
        conductor.cluster_update(ctx,
                                 cluster,
                                 {'trust_id': None})
Delete a trust from a cluster
dataset/ETHPy150Open openstack/sahara/sahara/service/trusts.py/delete_trust_from_cluster