1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Be more tolerant with Amazon EC2 delays

This commit is contained in:
Tino Vazquez 2016-07-14 11:34:04 +02:00
parent 228d0df5be
commit 94ed6e0ab7

View File

@ -280,6 +280,17 @@ class EC2Driver
end
end
index = 0
while index < 5
begin
instance.status
rescue
end
sleep 2
index = index + 1
end
begin
instance = AWS.ec2.instances.create(opts)
rescue => e