def check_min_healthy_instances(min_healthy):
  """Lookup the number of instances by ELB state and assert if the minimum required is not met."""
  healthy = ec2_utils.GetELBInstancesByHealth(env.region, node_types=[env.nodetype])
  num_healthy = len(healthy['InService'])
  assert num_healthy >= min_healthy, 'Not enough backends with healthy ELB status (%d vs %d)' - \
                                     (num_healthy, min_healthy)
dataset/ETHPy150Open viewfinderco/viewfinder/fabfile.py/check_min_healthy_instances/operator `%` -> `-`