def _trunc_id(session_id):
    if session_id is not None:
        return session_id[-5:]


# TODO(vbala) Move this class to excutils.py.
Returns truncated session id which is suitable for logging.
dataset/ETHPy150Open openstack/oslo.vmware/oslo_vmware/api.py/_trunc_id