Skip to content

Commit 2f7d75e

Browse files
committed
This method isn't used, so undoing changes here
1 parent ac860f1 commit 2f7d75e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/capify-ec2.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)