diff --git a/lib/fog/aws/parsers/compute/describe_internet_gateways.rb b/lib/fog/aws/parsers/compute/describe_internet_gateways.rb index 10d76f318..28169c395 100644 --- a/lib/fog/aws/parsers/compute/describe_internet_gateways.rb +++ b/lib/fog/aws/parsers/compute/describe_internet_gateways.rb @@ -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 diff --git a/tests/aws/requests/compute/internet_gateway_tests.rb b/tests/aws/requests/compute/internet_gateway_tests.rb index c21e831fe..92d5ce898 100644 --- a/tests/aws/requests/compute/internet_gateway_tests.rb +++ b/tests/aws/requests/compute/internet_gateway_tests.rb @@ -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