mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-08 16:24:51 -04:00
Store metadata when it is an empty string (such as role, serial number, etc...) (#27303)
This commit is contained in:
parent
f8eb0154d4
commit
b2877f7050
1 changed files with 1 additions and 1 deletions
|
|
@ -449,7 +449,7 @@ func (b *backend) pathIssueSignCert(ctx context.Context, req *logical.Request, d
|
|||
}
|
||||
}
|
||||
|
||||
if metadataInRequest && len(metadata.(string)) > 0 {
|
||||
if metadataInRequest {
|
||||
metadataBytes, err := base64.StdEncoding.DecodeString(metadata.(string))
|
||||
if err != nil {
|
||||
// TODO: Should we clean up the original cert here?
|
||||
|
|
|
|||
Loading…
Reference in a new issue