Merge pull request #4 from kernitus/master
Fixed root domain being added instead of updated
This commit is contained in:
commit
f807ceb38f
@ -49,7 +49,11 @@ def commitRecord(ip):
|
|||||||
}
|
}
|
||||||
list = cf_api(
|
list = cf_api(
|
||||||
"zones/" + c['zone_id'] + "/dns_records&per_page=100?type=" + ip["type"], "GET", c)
|
"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 = ""
|
dns_id = ""
|
||||||
for r in list["result"]:
|
for r in list["result"]:
|
||||||
if (r["name"] == full_subdomain):
|
if (r["name"] == full_subdomain):
|
||||||
|
|||||||
Reference in New Issue
Block a user