edgedns: fix Present and CleanUp logic (#1494)

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
Laszlo Janosi 2021-09-29 16:05:55 +02:00 committed by GitHub
parent b86f37238f
commit 2763e76270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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