Fixed root domain being added instead of updated

This commit is contained in:
kernitus 2019-12-02 20:45:20 +00:00 committed by GitHub
parent e770f8ae9b
commit 17d2377529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,11 @@ def commitRecord(ip):
}
list = cf_api(
"zones/" + c['zone_id'] + "/dns_records&per_page=100?type=" + ip["type"], "GET", c)
full_subdomain = subdomain + "." + base_domain_name
full_subdomain = base_domain_name
if subdomain:
full_subdomain = subdomain + "." + full_subdomain
dns_id = ""
for r in list["result"]:
if (r["name"] == full_subdomain):