mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 06:26:17 +03:00
Add "name" and "description" params to service acc (#17172)
This commit is contained in:
committed by
GitHub
parent
ad2ab6eb3e
commit
9d96b18df0
+6
-2
@@ -2184,8 +2184,12 @@ func (store *IAMStoreSys) UpdateServiceAccount(ctx context.Context, accessKey st
|
||||
cr.SecretKey = opts.secretKey
|
||||
}
|
||||
|
||||
if opts.comment != "" {
|
||||
cr.Comment = opts.comment
|
||||
if opts.name != "" {
|
||||
cr.Name = opts.name
|
||||
}
|
||||
|
||||
if opts.description != "" {
|
||||
cr.Description = opts.description
|
||||
}
|
||||
|
||||
if opts.expiration != nil {
|
||||
|
||||
Reference in New Issue
Block a user