fix testserver in vault enterprise environment (#8358)

This commit is contained in:
Becca Petrin 2020-02-14 18:17:58 -08:00 committed by GitHub
parent e1c0a1c959
commit 7dcb9d88a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,11 @@ var (
pathToFiles = func() string {
wd, _ := os.Getwd()
pathParts := strings.Split(wd, "vault")
repoName := "vault-enterprise"
if !strings.Contains(wd, repoName) {
repoName = "vault"
}
pathParts := strings.Split(wd, repoName)
return pathParts[0] + "vault/serviceregistration/kubernetes/testing/"
}()
)