autodns: removes TXT records during CleanUp. (#1141)

This commit is contained in:
Ludovic Fernandez 2020-05-05 22:38:33 +02:00 committed by GitHub
parent a7eb2cd258
commit b59dffbede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ func (d *DNSProvider) addTxtRecord(domain string, records []*ResourceRecord) (*Z
} }
func (d *DNSProvider) removeTXTRecord(domain string, records []*ResourceRecord) error { func (d *DNSProvider) removeTXTRecord(domain string, records []*ResourceRecord) error {
zoneStream := &ZoneStream{Adds: records} zoneStream := &ZoneStream{Removes: records}
_, err := d.makeZoneUpdateRequest(zoneStream, domain) _, err := d.makeZoneUpdateRequest(zoneStream, domain)
return err return err