0
0
mirror of https://github.com/thegeeklab/corenetworks.git synced 2024-11-14 06:40:39 +00:00

add fake update action fit CNAME records

This commit is contained in:
Robert Kaussow 2020-05-20 21:33:59 +02:00
parent 4b563288fc
commit e8558d9daf
2 changed files with 4 additions and 2 deletions

View File

@ -1,2 +1,2 @@
* ENHANCEMENT * BUGFIX
* add `expires` timestamp to the BasicAuth object * add fake update action fit CNAME records

View File

@ -225,6 +225,8 @@ class CoreNetworks():
name=r["name"] name=r["name"]
) )
) )
if params["type"] == "CNAME" and r["data"] != params["data"]:
self._delete_record_raw(zone, params=r)
curr = copy.deepcopy(params) curr = copy.deepcopy(params)
curr.pop("ttl") curr.pop("ttl")