Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Feb 9, 2025
1 parent 5146f43 commit 938dd50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/dns/spaceship/spaceship.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
TTL: d.config.TTL,
}

err = d.client.AddRecord(context.Background(), authZone, record)
err = d.client.AddRecord(context.Background(), dns01.UnFqdn(authZone), record)
if err != nil {
return fmt.Errorf("spaceship: %w", err)
}
Expand Down Expand Up @@ -139,7 +139,7 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error {
Value: info.Value,
}

err = d.client.DeleteRecord(context.Background(), authZone, record)
err = d.client.DeleteRecord(context.Background(), dns01.UnFqdn(authZone), record)
if err != nil {
return fmt.Errorf("spaceship: %w", err)
}
Expand Down

0 comments on commit 938dd50

Please sign in to comment.