Skip to content

Commit

Permalink
backport of commit b2877f7 (#27305)
Browse files Browse the repository at this point in the history
Co-authored-by: Kit Haines <[email protected]>
  • Loading branch information
1 parent 3ff9000 commit 3f5b5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/logical/pki/path_issue_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 3f5b5d4

Please sign in to comment.