def delete_trust(trust_id):
LOG.debug("Deleting trust id: %s", trust_id)
auth = _get_trusts_auth_plugin(trust_id)
session = ks_session.Session(
auth=auth, verify=not CONF.keystone.allow_untrusted)
client = kc_v3.Client(session=session)
try:
client.trusts.delete(trust_id)
except ks_exceptions.NotFound:
LOG.debug("Trust id not found: %s", trust_id)
评论列表
文章目录