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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user