File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -293,14 +293,10 @@ def deregister_instance_from_elb(instance_name)
293293 end
294294
295295 def register_instance_in_elb ( instance_name , load_balancer_name = '' )
296- # This method also registers the instance in an equivalently named ALB.
297296 return if !@ec2_config [ :load_balanced ]
298297 instance = get_instance_by_name ( instance_name )
299298 return if instance . nil?
300- # If instance is in EC2 classic then skip the ALB registration
301- if is_vpc_instance? instance
302- # Add instance to ALB target group attached to ALB with same name as ELB
303- end
299+ load_balancer = get_load_balancer_by_name ( load_balancer_name ) || @@load_balancer
304300 return if load_balancer . nil?
305301
306302 elb . register_instances_with_load_balancer ( instance . id , load_balancer . id )
You can’t perform that action at this time.
0 commit comments