def edit_team(name,
              description=None,
              privacy=None,
              permission=None,
              profile="github"):
    '''
    Updates an existing Github team.

    name
        The name of the team to be edited.

    description
        The description of the team.

    privacy
        The level of privacy for the team, can be 'secret' or 'closed'.

    permission
        The default permission for new repositories added to the team, can be
        'pull', 'push' or 'admin'.

    profile
        The name of the profile configuration to use. Defaults to ``github``.

    CLI Example:

    .. code-block:: bash

        salt myminion github.edit_team 'team_name' description='Team description'

    .. versionadded:: 2016.11.0
    '''
    team = get_team(name, profile=profile)
    if not team:
        log.error('Team %s does not exist', name)
        return False
    try:
        client = _get_client(profile)
        organization = client.get_organization(
            _get_config_value(profile, 'org_name')
        )
        team = organization.get_team(team['id'])

        parameters = {}
        if name is not None:
            parameters['name'] = name
        if description is not None:
            parameters['description'] = description
        if privacy is not None:
            parameters['privacy'] = privacy
        if permission is not None:
            parameters['permission'] = permission

        team._requester.requestJsonAndCheck(
            "PATCH",
            team.url,
            input=parameters
        )
        return True
    except UnknownObjectException:
        log.exception('Resource not found')
        return False
Updates an existing Github team.

    name
        The name of the team to be edited.

    description
        The description of the team.

    privacy
        The level of privacy for the team, can be 'secret' or 'closed'.

    permission
        The default permission for new repositories added to the team, can be
        'pull', 'push' or 'admin'.

    profile
        The name of the profile configuration to use. Defaults to ``github``.

    CLI Example:

    .. code-block:: bash

        salt myminion github.edit_team 'team_name' description='Team description'

    .. versionadded:: 2016.11.0