mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
backport of commit 3130e8ba94 (#22867)
This commit is contained in:
committed by
GitHub
parent
df758c4eaa
commit
2eea7faf61
@@ -216,6 +216,11 @@ func (c *KVPutCommand) Run(args []string) int {
|
||||
return PrintRawField(c.UI, secret, c.flagField)
|
||||
}
|
||||
|
||||
// If the secret is wrapped, return the wrapped response.
|
||||
if secret.WrapInfo != nil && secret.WrapInfo.TTL != 0 {
|
||||
return OutputSecret(c.UI, secret)
|
||||
}
|
||||
|
||||
if Format(c.UI) == "table" {
|
||||
outputPath(c.UI, fullPath, "Secret Path")
|
||||
metadata := secret.Data
|
||||
|
||||
Reference in New Issue
Block a user