From 996d04fec01cc04885528917357a753b93e48669 Mon Sep 17 00:00:00 2001 From: redxef Date: Tue, 16 Jan 2024 20:47:36 +0100 Subject: [PATCH] Reuse records. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 934cf81..c7cf46b 100755 --- a/main.py +++ b/main.py @@ -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']