Skip to content

Commit

Permalink
Fixes usage of uppercase letters in FQDN for AAAA-Record
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanthKa677 committed Jun 19, 2023
1 parent 3ef0d77 commit bbf9cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions object_manager_aaaa-record.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (objMgr *ObjectManager) CreateAAAARecord(
comment string,
eas EA) (*RecordAAAA, error) {

cleanName := strings.ToLower(strings.TrimSpace(recordName))
cleanName := strings.TrimSpace(recordName)
if cleanName == "" || cleanName != recordName {
return nil, fmt.Errorf(
"'name' argument is expected to be non-empty and it must NOT contain leading/trailing spaces")
Expand Down Expand Up @@ -107,7 +107,7 @@ func (objMgr *ObjectManager) UpdateAAAARecord(
comment string,
setEas EA) (*RecordAAAA, error) {

cleanName := strings.ToLower(strings.TrimSpace(recordName))
cleanName := strings.TrimSpace(recordName)
if cleanName == "" || cleanName != recordName {
return nil, fmt.Errorf(
"'name' argument is expected to be non-empty and it must NOT contain leading/trailing spaces")
Expand Down

0 comments on commit bbf9cc9

Please sign in to comment.