Skip to content

Commit

Permalink
feat(clouddns): Allow deletion of RRs
Browse files Browse the repository at this point in the history
This was stubbed out before, now implemented.
  • Loading branch information
scottlaird committed Dec 25, 2023
1 parent 5c066a7 commit bfa53c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clouddns.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ func (cd *CloudDNS) WriteRecord(cz *ConfigZone, r *Record) error {
//
// TODO: implement
func (cd *CloudDNS) RemoveRecord(cz *ConfigZone, r *Record) error {
fmt.Printf("(should) remove %s %s %d %v\n", r.Name, r.Type, r.TTL, r.Rrdatas)
return nil
d := cd.rrss.Delete(cz.Project, cz.ZoneName, r.Name, r.Type)
_, err := d.Do()

return err
}

// Save flushes changes to Cloud DNS. This is a no-op at the moment,
Expand Down

0 comments on commit bfa53c4

Please sign in to comment.