mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-30 15:05:39 +00:00
Remove blank comments from rrsets before sending for compatibility with some pdns backends
This commit is contained in:
parent
f2704649f1
commit
417338d826
@ -272,6 +272,15 @@ class Record(object):
|
|||||||
# Get the list of rrsets to be added and deleted
|
# Get the list of rrsets to be added and deleted
|
||||||
new_rrsets, del_rrsets = self.compare(domain_name, submitted_records)
|
new_rrsets, del_rrsets = self.compare(domain_name, submitted_records)
|
||||||
|
|
||||||
|
# Remove blank comments from rrsets for compatability with some backends
|
||||||
|
for r in new_rrsets['rrsets']:
|
||||||
|
if not r['comments']:
|
||||||
|
del r['comments']
|
||||||
|
|
||||||
|
for r in del_rrsets['rrsets']:
|
||||||
|
if not r['comments']:
|
||||||
|
del r['comments']
|
||||||
|
|
||||||
# Submit the changes to PDNS API
|
# Submit the changes to PDNS API
|
||||||
try:
|
try:
|
||||||
headers = {}
|
headers = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user