def create_keystone_session(trust_id): verify = not CONF.keystone.allow_untrusted auth = _get_trusts_auth_plugin(trust_id) return ks_session.Session(auth=auth, verify=verify)