From e8558d9dafc02da612979920f391ffb0a5ea11e9 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 20 May 2020 21:33:59 +0200 Subject: [PATCH] add fake update action fit CNAME records --- CHANGELOG.md | 4 ++-- corenetworks/client.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4304910..b69eab1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,2 @@ -* ENHANCEMENT - * add `expires` timestamp to the BasicAuth object +* BUGFIX + * add fake update action fit CNAME records diff --git a/corenetworks/client.py b/corenetworks/client.py index 2f809f3..90f52b0 100644 --- a/corenetworks/client.py +++ b/corenetworks/client.py @@ -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")