Fix bug with lowercasing

This commit is contained in:
Simon Beck 2022-02-08 12:56:33 +01:00
parent d44eec81f3
commit e528485892
2 changed files with 20 additions and 1 deletions

17
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"env": {},
"args": []
}
]
}

View file

@ -30,7 +30,9 @@ func dnToConsul(dn string) (string, error) {
rdns[i], rdns[j] = rdns[j], rdns[i] rdns[i], rdns[j] = rdns[j], rdns[i]
} }
return strings.Join(rdns, "/"), nil concattedPath := strings.Join(rdns, "/")
return strings.ToLower(concattedPath), nil
} }
func consulToDN(key string) (string, string, error) { func consulToDN(key string) (string, string, error) {