Merge pull request #1960 from tatsuyafw/add-trailing-dot-to-resource-record

Add a trailing dot to the Name of Route53 ResourceRecordSet
This commit is contained in:
Steve Pulec 2018-12-28 21:01:35 -05:00 committed by GitHub
commit 860dfbbe11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 12 deletions

View file

@ -123,6 +123,9 @@ class Route53(BaseResponse):
""" % (record_set['Name'], the_zone.name)
return 400, headers, error_msg
if not record_set['Name'].endswith('.'):
record_set['Name'] += '.'
if action in ('CREATE', 'UPSERT'):
if 'ResourceRecords' in record_set:
resource_records = list(