Private GIT

Skip to content
Snippets Groups Projects
Commit 1d10eade authored by arjuan's avatar arjuan
Browse files

add configuration ttl

parent 33c9dc5d
Branches
Tags
No related merge requests found
...@@ -83,7 +83,7 @@ def main(): ...@@ -83,7 +83,7 @@ def main():
print("external IP is: %s" % external_ip) print("external IP is: %s" % external_ip)
#Prepare record #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. #Check if record already exists. If not, add record. If it does, delete then add record.
record = get_record(url, headers) record = get_record(url, headers)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment