Skip to content

Commit

Permalink
cmd/webhook/provider.go: Fix int to string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
hatrx committed Sep 13, 2024
1 parent 6133630 commit 610457d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/webhook/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"encoding/json"
"fmt"
"log/slog"
"strconv"
"strings"
"sync"

Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 610457d

Please sign in to comment.