Updated TTL from 300 to 5
This commit is contained in:
parent
51f3b7dde0
commit
252410c6e9
|
@ -180,7 +180,7 @@ def create_txt_record(domain, token, account_number):
|
||||||
fqdn = "{0}.{1}".format(node_name, zone_name)
|
fqdn = "{0}.{1}".format(node_name, zone_name)
|
||||||
path = "/v2/zones/{0}/rrsets/TXT/{1}".format(zone_name, node_name)
|
path = "/v2/zones/{0}/rrsets/TXT/{1}".format(zone_name, node_name)
|
||||||
params = {
|
params = {
|
||||||
"ttl": 300,
|
"ttl": 5,
|
||||||
"rdata": [
|
"rdata": [
|
||||||
"{}".format(token)
|
"{}".format(token)
|
||||||
],
|
],
|
||||||
|
@ -244,7 +244,7 @@ def delete_txt_record(change_id, account_number, domain, token):
|
||||||
# if len(rrsets["rrSets"][0]["rdata"]) > 0:
|
# if len(rrsets["rrSets"][0]["rdata"]) > 0:
|
||||||
if len(record.rdata) > 0:
|
if len(record.rdata) > 0:
|
||||||
params = {
|
params = {
|
||||||
"ttl": 300,
|
"ttl": 5,
|
||||||
"rdata": record.rdata,
|
"rdata": record.rdata,
|
||||||
}
|
}
|
||||||
_post(path, params)
|
_post(path, params)
|
||||||
|
|
Loading…
Reference in New Issue