deregister the ec2 instance, not the as instance
This commit is contained in:
parent
f91dbe1c94
commit
1463d49e9a
|
@ -100,7 +100,7 @@ module AwsMissingTools
|
|||
sleep @inservice_polling_time
|
||||
end
|
||||
|
||||
deregister_instance instance, @group.load_balancers
|
||||
deregister_instance instance.ec2_instance, @group.load_balancers
|
||||
sleep @opts[:elb_timeout]
|
||||
|
||||
puts "Instance #{instance.id} will now be terminated. By terminating this instance, the actual capacity will be decreased to 1 under desired-capacity."
|
||||
|
|
|
@ -68,6 +68,9 @@ module AWS
|
|||
def id
|
||||
'i-test'
|
||||
end
|
||||
|
||||
def ec2_instance
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user