Browse Source

Merge pull request #531 from github/route53-sort-batches

Order each batch of Route53 changesets so that delets come before create
pull/533/head
Ross McFarland 6 years ago
committed by GitHub
parent
commit
25db222932
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      octodns/provider/route53.py

+ 2
- 0
octodns/provider/route53.py View File

@ -1395,6 +1395,8 @@ class Route53Provider(BaseProvider):
self._really_apply(batch, zone_id)
def _really_apply(self, batch, zone_id):
# Ensure this batch is ordered (deletes before creates etc.)
batch.sort(key=_mod_keyer)
uuid = uuid4().hex
batch = {
'Comment': 'Change: {}'.format(uuid),


Loading…
Cancel
Save