import click


def trim_indecisive_repos(repos):
    """
    Check the repos for a "maybe" value in the "openedx-release" key.

    Arguments:
        repos (dict): A dict mapping Repository objects to openedx.yaml data.

    Returns:
        A dict like its argument, but without the indecisive repos.

    """
    trimmed = {}
    for repo, repo_data in repos.items():
        maybe = repo_data["openedx-release"].get("maybe")
        if maybe:
            click.secho(f"*** {repo} has openedx-release 'maybe', skipped", fg="red")
        else:
            trimmed[repo] = repo_data
    return trimmed