Permalink
Browse files

[aws|compute] save tags for spot_requests#bootstrap

closes fog#582
  • Loading branch information...
geemus committed Nov 2, 2011
1 parent bff58bc commit 93586ad073ee49c2b24ec571f2cbd0d8c64c462a
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/fog/aws/models/compute/spot_requests.rb
@@ -64,6 +64,15 @@ def bootstrap(new_attributes = {})
spot_request.wait_for { ready? }
Fog.wait_for { server = connection.servers.get(spot_request.instance_id) }
server = connection.servers.get(spot_request.instance_id)
if spot_request.tags
for key, value in spot_request.tags
connection.tags.create(
:key => key,
:resource_id => spot_request.instance_id,
:value => value
)
end
end
server.wait_for { ready? }
server.setup(:key_data => [server.private_key])
server

0 comments on commit 93586ad

Please sign in to comment.