mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 08:55:13 -04:00
credential/cert: default display name
This commit is contained in:
parent
e17c11149f
commit
b9a9c3677a
1 changed files with 5 additions and 0 deletions
|
|
@ -97,6 +97,11 @@ func (b *backend) pathCertWrite(
|
|||
policies[i] = strings.TrimSpace(p)
|
||||
}
|
||||
|
||||
// Default the display name to the certificate name if not given
|
||||
if displayName == "" {
|
||||
displayName = name
|
||||
}
|
||||
|
||||
if len(policies) == 0 {
|
||||
return logical.ErrorResponse("policies required"), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue