lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/server.rb in brightbox-cli-0.16.0 vs lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/server.rb in brightbox-cli-0.17.0

- old
+ new

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