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

Fix describe_internet_gateways calls for >1 igw

@internet_gateway was incorrectly reset after the first
InternetGatewaySet item.  On encountering a second, we end up
attempting to dereference nil as a hash, causing the parser to
blow up with an unintuitive error.
This commit is contained in:
Jon Topper 2014-07-09 17:03:07 +01:00
parent 26ffbf087c
commit 6120f1e8fc

View file

@ -47,8 +47,7 @@ module Fog
@internet_gateway[name] = value
when 'item'
@response['internetGatewaySet'] << @internet_gateway
@internet_gateway = { 'tagSet' => {} }
@internet_gateway = { 'attachmentSet' => {} }
@internet_gateway = { 'attachmentSet' => {}, 'tagSet' => {} }
when 'requestId'
@response[name] = value
end