Compare records based on lowercase representation

Este commit está contenido en:
Sebastian Lohff 2019-05-31 12:53:00 +02:00
padre 39b65ceba0
commit c800f853ac
Se han modificado 1 ficheros con 2 adiciones y 2 borrados

Ver fichero

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