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:
parent
26ffbf087c
commit
6120f1e8fc
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue