deregister the ec2 instance, not the as instance

This commit is contained in:
Anuj Biyani 2013-06-04 15:52:38 -07:00
parent f91dbe1c94
commit 1463d49e9a
2 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,7 @@ module AwsMissingTools
sleep @inservice_polling_time sleep @inservice_polling_time
end end
deregister_instance instance, @group.load_balancers deregister_instance instance.ec2_instance, @group.load_balancers
sleep @opts[:elb_timeout] 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." puts "Instance #{instance.id} will now be terminated. By terminating this instance, the actual capacity will be decreased to 1 under desired-capacity."

View File

@ -68,6 +68,9 @@ module AWS
def id def id
'i-test' 'i-test'
end end
def ec2_instance
end
end end
end end
end end