def METHOD_NAME(needs_certificate, reports):
    LOG.info("h3. Ingresses with problems\n\n")
    needs_fixing = 0
    for report in reports:
        if all(p.type in (ProblemType.TOO_LONG, ProblemType.NO_CERTIFICATE) for p in report.problems):
            continue
        needs_fixing += 1
        LOG.info("h4. {}\n\n".format(report.ingress))
        for problem in report.problems:
            LOG.info("* {}: {}".format(problem.host, problem.reason))
        LOG.info("")
    LOG.info("h3. {} ingresses needs certificates, {} ingresses must be fixed".format(needs_certificate, needs_fixing))