def bulk_disable(workers, lbn, profile='default'):
 ret = {}
 if isinstance(workers, str):
  workers = workers.split(',')
 for worker in workers:
  try:
   ret[worker] = worker_disable(worker, lbn, profile)
  except Exception:
   ret[worker] = False
 return ret

def bulk_disable ( workers , lbn , profile = 'default' ) : ret = { } if isinstance ( workers , str ) : workers = workers . split ( ',' ) for worker in workers : try : ret [ worker ] = worker_disable ( worker , lbn , profile ) except Exception : ret [ worker ] = False return ret
disable all the given workers in the specific load balancer cli examples: .