def AddELBInstance(region, instance_id, node_type):
 balancers = GetLoadBalancers(region, node_types=[node_type])
 assert balancers, ('No %s load balancer in region %s' % (node_type, region))
 assert (len(balancers) == 1)
 b = balancers[0]
 b.register_instances([instance_id])
 print ('Added instance %s to %s load balancer in region %s' % (instance_id, node_type, region))

def AddELBInstance ( region , instance_id , node_type ) : balancers = GetLoadBalancers ( region , node_types = [ node_type ] ) assert balancers , ( 'No %s load balancer in region %s' % ( node_type , region ) ) assert ( len ( balancers ) == 1 ) b = balancers [ 0 ] b . register_instances ( [ instance_id ] ) print ( 'Added instance %s to %s load balancer in region %s' % ( instance_id , node_type , region ) )
add an instance to the load balancer in region .