def reload_loadbalancers(group, load_balancers, exclude=None):
 exclude = (exclude or [])
 id_list = grouputils.get_member_refids(group, exclude=exclude)
 for (name, lb) in six.iteritems(load_balancers):
  props = copy.copy(lb.properties.data)
  if ('Instances' in lb.properties_schema):
   props['Instances'] = id_list
  elif ('members' in lb.properties_schema):
   props['members'] = id_list
  else:
   raise exception.Error((_("Unsupported resource '%s' in LoadBalancerNames") % name))
  lb_defn = rsrc_defn.ResourceDefinition(lb.name, lb.type(), properties=props, metadata=lb.t.metadata(), deletion_policy=lb.t.deletion_policy())
  scheduler.TaskRunner(lb.update, lb_defn)()

def reload_loadbalancers ( group , load_balancers , exclude = None ) : exclude = ( exclude or [ ] ) id_list = grouputils . get_member_refids ( group , exclude = exclude ) for ( name , lb ) in six . iteritems ( load_balancers ) : props = copy . copy ( lb . properties . data ) if ( 'Instances' in lb . properties_schema ) : props [ 'Instances' ] = id_list elif ( 'members' in lb . properties_schema ) : props [ 'members' ] = id_list else : raise exception . Error ( ( _ ( "Unsupported resource '%s' in LoadBalancerNames" ) % name ) ) lb_defn = rsrc_defn . ResourceDefinition ( lb . name , lb . type ( ) , properties = props , metadata = lb . t . metadata ( ) , deletion_policy = lb . t . deletion_policy ( ) ) scheduler . TaskRunner ( lb . update , lb_defn ) ( )
notify the loadbalancer to reload its config .