Skip to content

Commit

Permalink
Loosen origin+dot rule on PopulateFromStringFunc
Browse files Browse the repository at this point in the history
  • Loading branch information
tlimoncelli committed Jan 14, 2025
1 parent f4f8c91 commit f6ac423
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/t_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func (rc *RecordConfig) PopulateFromStringFunc(rtype, contents, origin string, t
return fmt.Errorf("assertion failed: rtype already set (%s) (%s)", rtype, rc.Type)
}

origin = strings.TrimRight(origin, ".")

switch rc.Type = rtype; rtype { // #rtype_variations
case "A":
return PopulateFromRawA(rc, []string{rc.Name, contents}, nil, origin)
Expand Down

0 comments on commit f6ac423

Please sign in to comment.