Browse Source

Order each batch of Route53 changesets so that delets come before create

pull/531/head
Ross McFarland 6 years ago
parent
commit
f6df5d3b62
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
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