Pass namespace to the Vault client (#1660)

The namespace was plumbed all the way through the API but isn't actually
set on the client when it is created.

Fixes #1597
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-11-03 14:52:11 -04:00
1 parent 4df3b40def
commit 03de1c4b21
2 files changed
+7

No files matched your search

+4
View File
@@ -79,6 +79,10 @@ func newClient(c *clientConfig) (*client, error) {
}
vClient.SetToken(string(c.Token))
if c.Namespace != "" {
vClient.SetNamespace(c.Namespace)
}
return &client{
cl: vClient,
token: c.Token,