Reuse records.

This commit is contained in:
redxef 2024-01-16 20:47:36 +01:00
parent d548244fa4
commit 996d04fec0
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -110,7 +110,7 @@ def main(config, level, force_refresh):
logger.debug(' - %s', repr(r))
records = [
r
for r in get_records(ovh_client, {'zone': config['zone']})
for r in records
if r['fieldType'] == config['field_type']
and r['zone'] == config['zone']
and r['subDomain'] == config['subdomain']