Get information about a session.

    .. versionadded:: 2016.11.0

    :param session_id: The numeric Id of the session.
    :return: A dictionary of session information.

    CLI Example:

    .. code-block:: bash

        salt '*' rdp.get_session session_id

        salt '*' rdp.get_session 99

def get_session(session_id):
    '''
    Get information about a session.

    .. versionadded:: 2016.11.0

    :param session_id: The numeric Id of the session.
    :return: A dictionary of session information.

    CLI Example:

    .. code-block:: bash

        salt '*' rdp.get_session session_id

        salt '*' rdp.get_session 99
    '''
    ret = dict()
    sessions = list_sessions()
    session = [item for item in sessions if item['session_id'] == session_id]

    if session:
        ret = session[0]

    if not ret:
        _LOG.warning('No session found for id: %s', session_id)
    return ret