|
|
@ -44,8 +44,8 @@ def mergeDomains(zoneData, pdnsData):
|
|
|
|
found = False
|
|
|
|
found = False
|
|
|
|
pdnsDom = list(filter(lambda _x: _x['name'] == domain and _x['type'] == rrType, rrData))
|
|
|
|
pdnsDom = list(filter(lambda _x: _x['name'] == domain and _x['type'] == rrType, rrData))
|
|
|
|
if len(pdnsDom) > 0:
|
|
|
|
if len(pdnsDom) > 0:
|
|
|
|
rrSet = set(_x['content'] for _x in pdnsDom[0]['records'])
|
|
|
|
rrSet = set(_x['content'].lower() for _x in pdnsDom[0]['records'])
|
|
|
|
if rrSet == set(records):
|
|
|
|
if rrSet == set(record.lower() for record in records):
|
|
|
|
found = True
|
|
|
|
found = True
|
|
|
|
|
|
|
|
|
|
|
|
if not found:
|
|
|
|
if not found:
|
|
|
|