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:
parent
09b2266371
commit
dbf93a2ae3
2 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ module Fog
|
||||||
index += 1 # should start at 1 instead of 0
|
index += 1 # should start at 1 instead of 0
|
||||||
params.merge!("Tag.#{index}.Key" => key)
|
params.merge!("Tag.#{index}.Key" => key)
|
||||||
unless tags[key].nil?
|
unless tags[key].nil?
|
||||||
params.merge("Tag.#{index}.Value" => tags[key])
|
params.merge!("Tag.#{index}.Value" => tags[key])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,8 @@ Shindo.tests('Fog::Compute[:aws] | tag requests', ['aws']) do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@volume.destroy
|
||||||
|
|
||||||
tests("#delete_tags('#{@volume.identity}', 'foo' => 'bar')").formats(AWS::Compute::Formats::BASIC) do
|
tests("#delete_tags('#{@volume.identity}', 'foo' => 'bar')").formats(AWS::Compute::Formats::BASIC) do
|
||||||
Fog::Compute[:aws].delete_tags(@volume.identity, 'foo' => 'bar').body
|
Fog::Compute[:aws].delete_tags(@volume.identity, 'foo' => 'bar').body
|
||||||
end
|
end
|
||||||
|
@ -72,6 +74,4 @@ Shindo.tests('Fog::Compute[:aws] | tag requests', ['aws']) do
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@volume.destroy
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue