mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
api.NewClient() now uses $VAULT_NAMESPACE as an input. (#6470)
* api.NewClient() now uses $VAULT_NAMESPACE as an input. * Remove bogus comments.
This commit is contained in:
@@ -422,6 +422,10 @@ func NewClient(c *Config) (*Client, error) {
|
||||
client.token = token
|
||||
}
|
||||
|
||||
if namespace := os.Getenv(EnvVaultNamespace); namespace != "" {
|
||||
client.SetNamespace(namespace)
|
||||
}
|
||||
|
||||
return client, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user