def synchronized(fn):
  @functools.wraps(fn)
  def wrapper(self, *args, **kwargs):
    with self._heap_lock:
      return fn(self, *args, **kwargs)
  return wrapper
Return a list of hosts from ZoneManager list.
dataset/ETHPy150Open steveniemitz/scales/scales/loadbalancer/heap.py/synchronized--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/scheduler/filters/all_hosts_filter.py/AllHostsFilter.filter_hosts