Skip to content

Commit

Permalink
fix: unfqdn
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Oct 25, 2024
1 parent bed2ba1 commit de7e82b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions providers/dns/corenetworks/corenetworks.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
Data: info.Value,
}

err = d.client.AddRecord(ctx, zone, record)
err = d.client.AddRecord(ctx, dns01.UnFqdn(zone), record)
if err != nil {
return fmt.Errorf("corenetworks: add record: %w", err)
}

err = d.client.CommitRecords(ctx, zone)
err = d.client.CommitRecords(ctx, dns01.UnFqdn(zone))
if err != nil {
return fmt.Errorf("corenetworks: commit records: %w", err)
}
Expand Down Expand Up @@ -167,12 +167,12 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error {
Data: info.Value,
}

err = d.client.DeleteRecords(ctx, zone, record)
err = d.client.DeleteRecords(ctx, dns01.UnFqdn(zone), record)
if err != nil {
return fmt.Errorf("corenetworks: delete records: %w", err)
}

err = d.client.CommitRecords(ctx, zone)
err = d.client.CommitRecords(ctx, dns01.UnFqdn(zone))
if err != nil {
return fmt.Errorf("corenetworks: commit records: %w", err)
}
Expand Down

0 comments on commit de7e82b

Please sign in to comment.