1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

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

This commit is contained in:
Ross McFarland
2020-04-02 12:32:12 -07:00
parent 479c921ac1
commit f6df5d3b62

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),