Skip to content

Commit

Permalink
edgedns: fix Present and CleanUp logic (#1494)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
janosi and ldez authored Sep 29, 2021
1 parent b86f372 commit 2763e76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions providers/dns/edgedns/edgedns.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
if err != nil {
return fmt.Errorf("edgedns: %w", err)
}

return nil
}

record = &configdns.RecordBody{
Expand Down Expand Up @@ -200,6 +202,8 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error {
if err != nil {
return fmt.Errorf("edgedns: %w", err)
}

return nil
}

err = existingRec.Delete(zone)
Expand Down

0 comments on commit 2763e76

Please sign in to comment.