From a8146704ff8a7c17e6581a2a7359f630b3f0c282 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 20 Nov 2024 03:52:32 +0100 Subject: [PATCH] fix: delete --- providers/dns/westcn/westcn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/dns/westcn/westcn.go b/providers/dns/westcn/westcn.go index 395f579c69..f4a1c8b775 100644 --- a/providers/dns/westcn/westcn.go +++ b/providers/dns/westcn/westcn.go @@ -149,7 +149,7 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error { return fmt.Errorf("westcn: unknown record ID for '%s' '%s'", info.EffectiveFQDN, token) } - err = d.client.DeleteRecord(context.Background(), authZone, recordID) + err = d.client.DeleteRecord(context.Background(), dns01.UnFqdn(authZone), recordID) if err != nil { return fmt.Errorf("westcn: delete record: %w", err) }