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

[aws|compute] tags are reset when reloading. #570.

This commit is contained in:
Dylan Egan 2011-10-22 10:21:35 -07:00
parent 16040a0bc6
commit c1c43861de

View file

@ -169,10 +169,10 @@ module Fog
data = connection.run_instances(image_id, 1, 1, options)
merge_attributes(data.body['instancesSet'].first)
if self.tags
if tags = self.tags
# expect eventual consistency
Fog.wait_for { self.reload rescue nil }
for key, value in self.tags
for key, value in (self.tags = tags)
connection.tags.create(
:key => key,
:resource_id => self.identity,