Skip to content

Commit

Permalink
[aws|compute] save tags for spot_requests#bootstrap
Browse files Browse the repository at this point in the history
closes fog#582
  • Loading branch information
geemus committed Nov 2, 2011
1 parent bff58bc commit 93586ad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/fog/aws/models/compute/spot_requests.rb
Expand Up @@ -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
Expand Down

0 comments on commit 93586ad

Please sign in to comment.