forked from TrueCloudLab/lego
edgedns: fix Present and CleanUp logic (#1494)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
b86f37238f
commit
2763e76270
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue