def compute_nb_hosts_series(bench):
    nb_hosts_series = []

    # Insure that min_hosts is always part of the serie
    nb_hosts_series.append(bench['min_hosts'])

    # Using the modulo to get the number of interations we have
    for modulo in xrange(1, divmod(bench['max_hosts'], bench['step-hosts'])[0]+1):
        nb_hosts = modulo * bench['step-hosts']
        # Don't save hosts that are below min_hosts
        if bench['min_hosts'] > nb_hosts:
            nb_hosts_series.append(nb_hosts)

    # Insure that the max_hosts is always part of the serie
    if bench['max_hosts'] not in nb_hosts_series:
        nb_hosts_series.append(bench['max_hosts'])

    return nb_hosts_series
dataset/ETHPy150Open redhat-cip/edeploy/src/health-server.py/compute_nb_hosts_series/swapped operands of `>`