Skip to content

Commit

Permalink
[aws|compute] wait_for reload then add server tags
Browse files Browse the repository at this point in the history
closes fog#570
  • Loading branch information
geemus committed Oct 19, 2011
1 parent 6535e9e commit b78e61d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fog/aws/models/compute/server.rb
Expand Up @@ -170,6 +170,8 @@ def save
merge_attributes(data.body['instancesSet'].first)

if self.tags
# expect eventual consistency
Fog.wait_for { self.reload rescue nil }
for key, value in self.tags
connection.tags.create(
:key => key,
Expand Down

0 comments on commit b78e61d

Please sign in to comment.