Skip to content

Commit

Permalink
Merge pull request infobloxopen#209 from hemanthKa677/aaaa_record_name
Browse files Browse the repository at this point in the history
Fixes usage of uppercase letters in FQDN for AAAA-Record
  • Loading branch information
ranjishmp authored Jun 19, 2023
2 parents 3ef0d77 + bbf9cc9 commit e439cee
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 e439cee

Please sign in to comment.