Skip to content

Commit

Permalink
fixed init ping to use vault-path
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed May 28, 2019
1 parent c9f163a commit 82d76e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cache/infra_config
Submodule infra_config added at 8ce431
3 changes: 2 additions & 1 deletion service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package service

import (
"context"
"path/filepath"
"sync"
"time"

Expand Down Expand Up @@ -62,7 +63,7 @@ func Initialise(ctx context.Context, c Config) (app *App, err error) {
}
app.vault.SetToken(c.VaultToken)

_, err = app.vault.Logical().List("/secret/metadata")
_, err = app.vault.Logical().List(filepath.Join("/secret", c.VaultPath, "metadata"))
if err != nil {
return nil, errors.Wrap(err, "failed to ping secrets metadata endpoint")
}
Expand Down

0 comments on commit 82d76e0

Please sign in to comment.