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

added private zone details to hosted_zone parser

This commit is contained in:
solud 2015-07-17 16:24:57 -07:00
parent bb7c819733
commit 98e18a6068

View file

@ -8,6 +8,8 @@ module Fog
@name_servers = []
@response = {}
@section = :hosted_zone
@vpcs = []
@vpc = {}
end
def end_element(name)
@ -31,6 +33,15 @@ module Fog
when 'NameServers'
@response['NameServers'] = @name_servers
@name_servers = {}
when 'VPCId', 'VPCRegion'
@vpc[name] = value
when 'VPC'
@vpcs << @vpc
@vpc = {}
when 'VPCs'
@response['HostedZone']['VPCs'] = @vpcs
@vpcs = {}
@section = :vpcs
end
end
end