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:
parent
228d0df5be
commit
94ed6e0ab7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user