1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|compute] tweaks for spot request bootstrap

This commit is contained in:
geemus 2011-11-02 08:17:36 -05:00
parent f29c7b18ed
commit bff58bcd0e

View file

@ -62,10 +62,11 @@ module Fog
spot_request.save
spot_request.wait_for { ready? }
Fog.wait_for { server = connection.servers.get(spot_request.instance_id) }
server = connection.servers.get(spot_request.instance_id)
server.wait_for { ready? }
server.setup(:key_data => [server.private_key])
spot_request
server
end
def get(spot_request_id)