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

Merge pull request #40 from josacar/master

Add idempotent excon option to some route53 API calls
This commit is contained in:
Wesley Beary 2015-01-26 11:10:51 -06:00
commit b60f189cad
3 changed files with 7 additions and 4 deletions

View file

@ -141,6 +141,7 @@ module Fog
body = %Q{<?xml version="1.0" encoding="UTF-8"?><ChangeResourceRecordSetsRequest xmlns="https://route53.amazonaws.com/doc/#{@version}/">#{changes}</ChangeResourceRecordSetsRequest>}
request({
:body => body,
:idempotent => true,
:parser => Fog::Parsers::DNS::AWS::ChangeResourceRecordSets.new,
:expects => 200,
:method => 'POST',

View file

@ -27,8 +27,9 @@ module Fog
request({
:expects => 200,
:parser => Fog::Parsers::DNS::AWS::GetHostedZone.new,
:idempotent => true,
:method => 'GET',
:parser => Fog::Parsers::DNS::AWS::GetHostedZone.new,
:path => "hostedzone/#{zone_id}"
})
end

View file

@ -48,11 +48,12 @@ module Fog
end
request({
:query => parameters,
:parser => Fog::Parsers::DNS::AWS::ListResourceRecordSets.new,
:expects => 200,
:idempotent => true,
:method => 'GET',
:path => "hostedzone/#{zone_id}/rrset"
:parser => Fog::Parsers::DNS::AWS::ListResourceRecordSets.new,
:path => "hostedzone/#{zone_id}/rrset",
:query => parameters
})
end
end