'Given hosts needing verification, return a subset to reverify.'

def _choose_subset_of_hosts_to_reverify(self, hosts):

    max_at_once = scheduler_config.config.reverify_max_hosts_at_once
    if ((max_at_once > 0) and (len(hosts) > max_at_once)):
        return random.sample(hosts, max_at_once)
    return sorted(hosts)
