0
0
mirror of https://github.com/thegeeklab/corenetworks.git synced 2024-11-13 00:10:42 +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
* add `expires` timestamp to the BasicAuth object
* BUGFIX
* add fake update action fit CNAME records

View File

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