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:
parent
bb7c819733
commit
98e18a6068
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue