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

[aws|compute] Fix a bug in delete_tags, but come up against a bug in AWS where tags aren't deleted if the resource still exists.

This commit is contained in:
Dylan Egan 2011-10-07 18:35:53 -07:00
parent 09b2266371
commit dbf93a2ae3
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ module Fog
index += 1 # should start at 1 instead of 0
params.merge!("Tag.#{index}.Key" => key)
unless tags[key].nil?
params.merge("Tag.#{index}.Value" => tags[key])
params.merge!("Tag.#{index}.Value" => tags[key])
end
end

View file

@ -61,6 +61,8 @@ Shindo.tests('Fog::Compute[:aws] | tag requests', ['aws']) do
end
end
@volume.destroy
tests("#delete_tags('#{@volume.identity}', 'foo' => 'bar')").formats(AWS::Compute::Formats::BASIC) do
Fog::Compute[:aws].delete_tags(@volume.identity, 'foo' => 'bar').body
end
@ -72,6 +74,4 @@ Shindo.tests('Fog::Compute[:aws] | tag requests', ['aws']) do
end
end
@volume.destroy
end