mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fix parser typo that caused failure in #describe_internet_gateways when the gateway had tags
This commit is contained in:
parent
b05567262b
commit
4ee99f4ac6
2 changed files with 6 additions and 1 deletions
|
@ -26,7 +26,7 @@ module Fog
|
|||
if @in_tag_set
|
||||
case name
|
||||
when 'item'
|
||||
@vpc['tagSet'][@tag['key']] = @tag['value']
|
||||
@internet_gateway['tagSet'][@tag['key']] = @tag['value']
|
||||
@tag = {}
|
||||
when 'key', 'value'
|
||||
@tag[name] = value
|
||||
|
|
|
@ -26,6 +26,11 @@ Shindo.tests('Fog::Compute[:aws] | internet_gateway requests', ['aws']) do
|
|||
tests('#describe_internet_gateways').formats(@internet_gateways_format) do
|
||||
Fog::Compute[:aws].describe_internet_gateways.body
|
||||
end
|
||||
|
||||
tests('#describe_internet_gateways with tags').formats(@internet_gateways_format) do
|
||||
Fog::Compute[:aws].create_tags @igw_id, {"environment" => "production"}
|
||||
Fog::Compute[:aws].describe_internet_gateways.body
|
||||
end
|
||||
|
||||
tests("#attach_internet_gateway('#{@igw_id}, #{@vpc_id}')").formats(AWS::Compute::Formats::BASIC) do
|
||||
Fog::Compute[:aws].attach_internet_gateway(@igw_id, @vpc_id).body
|
||||
|
|
Loading…
Add table
Reference in a new issue