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:
parent
16040a0bc6
commit
c1c43861de
1 changed files with 2 additions and 2 deletions
|
@ -169,10 +169,10 @@ module Fog
|
||||||
data = connection.run_instances(image_id, 1, 1, options)
|
data = connection.run_instances(image_id, 1, 1, options)
|
||||||
merge_attributes(data.body['instancesSet'].first)
|
merge_attributes(data.body['instancesSet'].first)
|
||||||
|
|
||||||
if self.tags
|
if tags = self.tags
|
||||||
# expect eventual consistency
|
# expect eventual consistency
|
||||||
Fog.wait_for { self.reload rescue nil }
|
Fog.wait_for { self.reload rescue nil }
|
||||||
for key, value in self.tags
|
for key, value in (self.tags = tags)
|
||||||
connection.tags.create(
|
connection.tags.create(
|
||||||
:key => key,
|
:key => key,
|
||||||
:resource_id => self.identity,
|
:resource_id => self.identity,
|
||||||
|
|
Loading…
Add table
Reference in a new issue