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