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

Fix get hosted zone parser to correctly convert ResourceRecordSetCount into integer

This commit is contained in:
KevinLoiseau 2019-08-19 11:35:42 +02:00
parent 467254535d
commit 3ff6cf3382
No known key found for this signature in database
GPG key ID: 709159A779B96CC3

View file

@ -17,14 +17,14 @@ module Fog
case name
when 'Id'
@hosted_zone[name]= value.sub('/hostedzone/', '')
when 'Name', 'CallerReference', 'Comment', 'PrivateZone', 'Config', 'ResourceRecordSetCount'
when 'Name', 'CallerReference', 'Comment', 'PrivateZone', 'Config'
@hosted_zone[name]= value
when 'ResourceRecordSetCount'
@hosted_zone['ResourceRecordSetCount'] = value.to_i
when 'HostedZone'
@response['HostedZone'] = @hosted_zone
@hosted_zone = {}
@section = :name_servers
when 'ResourceRecordSetCount'
@response['ResourceRecordSetCount'] = value.to_i
end
elsif @section == :name_servers
case name