From 610457d500490245e22d6d41263d1e3b07ef7d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20=C3=98stergaard=20Jensen?= Date: Thu, 12 Sep 2024 15:52:10 +0200 Subject: [PATCH] cmd/webhook/provider.go: Fix int to string conversion --- cmd/webhook/provider.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/webhook/provider.go b/cmd/webhook/provider.go index 9f46136..06cd3d2 100644 --- a/cmd/webhook/provider.go +++ b/cmd/webhook/provider.go @@ -21,6 +21,7 @@ import ( "encoding/json" "fmt" "log/slog" + "strconv" "strings" "sync" @@ -308,7 +309,7 @@ func (p *tidyProvider) createRecord(zones []tidydns.Zone, endpoint *Endpoint) { Name: dnsName, Description: description, Destination: target, - TTL: json.Number(ttl), + TTL: json.Number(strconv.Itoa(ttl)), } slog.Debug(fmt.Sprintf("create record %+v", *newRec))