B #4971: change the way of waiting for ec2 instances

This commit is contained in:
Javi Fontan committed 2017-01-10 16:14:04 +01:00
1 parent b4e2bfce58
commit e329bfb20d
1 file changed
+4 -3
+4 -3
View File
@@ -294,10 +294,11 @@ class EC2Driver
while Time.now - start_time < @state_change_timeout
begin
instance.state
break
rescue
break if instance.exists?
rescue => e
STDERR.puts "RESCUE: #{e.inspect}"
end
sleep 2
end