Merge pull request #4 from kernitus/master

Fixed root domain being added instead of updated
This commit is contained in:
Tim Miller
2019-12-06 14:03:59 -05:00
committed by GitHub

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):