Skip to content

Commit 82d76e0

Browse files
committed
fixed init ping to use vault-path
1 parent c9f163a commit 82d76e0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cache/infra_config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 8ce431afb48d26ec31cada2545b100a3d3e4c6da

service/service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package service
22

33
import (
44
"context"
5+
"path/filepath"
56
"sync"
67
"time"
78

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

65-
_, err = app.vault.Logical().List("/secret/metadata")
66+
_, err = app.vault.Logical().List(filepath.Join("/secret", c.VaultPath, "metadata"))
6667
if err != nil {
6768
return nil, errors.Wrap(err, "failed to ping secrets metadata endpoint")
6869
}

0 commit comments

Comments
 (0)