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:
1 parent
4df3b40def
commit
03de1c4b21
2 files changed
+7
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user