Skip to content

Commit

Permalink
fix: use omitempty for record metadata so things remain backwards com…
Browse files Browse the repository at this point in the history
…patible
  • Loading branch information
benfiola committed Oct 13, 2024
1 parent 1f834cc commit fac73e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (c *client) deleteDnsRecord(v map[string]string) error {

// Metadata stored as a comment within a routeros dns record
type recordMetadata struct {
Id string `json:"id"`
Id string `json:"id,omitempty"`
}

// When a routeros dns record is missing metadata via structured data stored in its comment,
Expand Down

0 comments on commit fac73e8

Please sign in to comment.