From 44413d3103bbc167c815367d325064fac9143116 Mon Sep 17 00:00:00 2001 From: David Gouldin Date: Fri, 19 Dec 2014 13:16:17 -0800 Subject: [PATCH] Ommitting RecordResourceSet.TTL when empty Amazon does not allow TTL to be specified for Alias records. Unless TTL is `omitempty`, an invalid xml payload will be generated for Alias record creation/deletion. --- route53/route53.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route53/route53.go b/route53/route53.go index 92d623f6..3aa91dd7 100644 --- a/route53/route53.go +++ b/route53/route53.go @@ -328,7 +328,7 @@ type ListResourceRecordSetsResponse struct { type ResourceRecordSet struct { Name string `xml:"Name"` Type string `xml:"Type"` - TTL int `xml:"TTL"` + TTL int `xml:"TTL,omitempty"` Records []string `xml:"ResourceRecords>ResourceRecord>Value,omitempty"` SetIdentifier string `xml:"SetIdentifier,omitempty"` Weight int `xml:"Weight,omitempty"`