mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Merge pull request #1255 from corubba/bugfix/api-order
fix: deletes shall come first in api payload (#1251)
This commit is contained in:
commit
f8048bf6aa
@ -337,7 +337,8 @@ class Record(object):
|
||||
replaces = [replace_for_api(r) for r in new_rrsets]
|
||||
deletes = [delete_for_api(r) for r in del_rrsets if not rrset_in(r, replaces)]
|
||||
return {
|
||||
'rrsets': replaces + deletes
|
||||
# order matters: first deletions, then additions+changes
|
||||
'rrsets': deletes + replaces
|
||||
}
|
||||
|
||||
def apply(self, domain_name, submitted_records):
|
||||
|
Loading…
Reference in New Issue
Block a user