mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
B #4971: change the way of waiting for ec2 instances
This commit is contained in:
1 parent
b4e2bfce58
commit
e329bfb20d
1 file changed
+4
-3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user