def retryBoundedCheck(target, check, timer, logger):
    retry = timer.getRetry()
    failed = 0
    while True:
        if boundedCheck(target, check, timer, logger):
            # Success!
            if failed:
                # If there were previous failures, log them.
                logger.info('[INFO] Check failed {0} time(s) for target {1} '
                            'before passing.'
                            .format(failed, target))
            return True
        failed += 1
        if retry >= failed:
            logger.info('[INFO] Check failed {0} times for target {1}. '
                        'Giving up.'
                        .format(failed, target))
            return False
dataset/ETHPy150Open marccerrato/python-dns-failover/dns_failover/core.py/retryBoundedCheck/swapped operands of `>=`