fix(dyndns): only update dns entries if there is stuff to be updated

This commit is contained in:
2026-02-10 22:46:48 +01:00
parent 39c596c17e
commit 51c95c7fd0
+2 -1
View File
@@ -25,7 +25,8 @@ with Client(CUSTOMER, API_KEY, API_PASSWORD) as api:
to_be_updated.append(record)
api.update_dns_records(DOMAIN, to_be_updated)
if to_be_updated:
api.update_dns_records(DOMAIN, to_be_updated)
zone = api.dns_zone(DOMAIN)
if zone.ttl != 300: