mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
bugfix: vault register should respect tmpdir (#29978)
This commit is contained in:
parent
822eda6be8
commit
be5afdd56c
2 changed files with 5 additions and 0 deletions
3
changelog/29978.txt
Normal file
3
changelog/29978.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
plugins: plugin registration should honor the `plugin_tmpdir` config
|
||||
```
|
||||
|
|
@ -52,6 +52,7 @@ func (c *PluginCatalog) setInternal(ctx context.Context, plugin pluginutil.SetPl
|
|||
Env: plugin.Env,
|
||||
Sha256: plugin.Sha256,
|
||||
Builtin: false,
|
||||
Tmpdir: c.tmpdir,
|
||||
}
|
||||
if entryTmp.OCIImage != "" && entryTmp.Runtime != "" {
|
||||
var err error
|
||||
|
|
@ -112,6 +113,7 @@ func (c *PluginCatalog) setInternal(ctx context.Context, plugin pluginutil.SetPl
|
|||
Env: plugin.Env,
|
||||
Sha256: plugin.Sha256,
|
||||
Builtin: false,
|
||||
Tmpdir: c.tmpdir,
|
||||
}
|
||||
|
||||
buf, err := json.Marshal(entry)
|
||||
|
|
|
|||
Loading…
Reference in a new issue