forked from Deuxfleurs/bottin
Fix bug with lowercasing
This commit is contained in:
parent
d44eec81f3
commit
e528485892
2 changed files with 20 additions and 1 deletions
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal 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": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
4
util.go
4
util.go
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue