From 1d10eadef2181823c3211d370f31c4b0ac67bca6 Mon Sep 17 00:00:00 2001 From: arjuan <rmarchant+github@gmail.com> Date: Mon, 3 Apr 2017 23:57:09 +0000 Subject: [PATCH] add configuration ttl --- gandi-ddns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gandi-ddns.py b/gandi-ddns.py index fdcf964..a1a29d4 100644 --- a/gandi-ddns.py +++ b/gandi-ddns.py @@ -83,7 +83,7 @@ def main(): print("external IP is: %s" % external_ip) #Prepare record - payload = {'rrset_ttl': 900, 'rrset_values': [external_ip]} + payload = {'rrset_ttl': config.get(section, "ttl"), 'rrset_values': [external_ip]} #Check if record already exists. If not, add record. If it does, delete then add record. record = get_record(url, headers) -- GitLab