fix(dyndns): only update dns entries if there is stuff to be updated
This commit is contained in:
@@ -25,6 +25,7 @@ with Client(CUSTOMER, API_KEY, API_PASSWORD) as api:
|
|||||||
to_be_updated.append(record)
|
to_be_updated.append(record)
|
||||||
|
|
||||||
|
|
||||||
|
if to_be_updated:
|
||||||
api.update_dns_records(DOMAIN, to_be_updated)
|
api.update_dns_records(DOMAIN, to_be_updated)
|
||||||
|
|
||||||
zone = api.dns_zone(DOMAIN)
|
zone = api.dns_zone(DOMAIN)
|
||||||
|
|||||||
Reference in New Issue
Block a user