Skip to content

Commit

Permalink
removing unnecessary restriction for FQDN of A-record (infobloxopen#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanthKa677 authored Jun 12, 2023
1 parent 7aeeca0 commit 3ef0d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object_manager_a-record.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (objMgr *ObjectManager) UpdateARecord(
comment string,
eas EA) (*RecordA, error) {

cleanName := strings.ToLower(strings.TrimSpace(name))
cleanName := strings.TrimSpace(name)
if cleanName == "" || cleanName != name {
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 3ef0d77

Please sign in to comment.