Add comment field to service accounts (#16380)

This commit is contained in:
Anis Elleuch authored and GitHub committed 2023-01-10 21:57:52 +04:00
1 parent 2146ed4033
commit 1ece3d1dfe
7 files changed
+22 -3

No files matched your search

+4
View File
@@ -2133,6 +2133,10 @@ func (store *IAMStoreSys) UpdateServiceAccount(ctx context.Context, accessKey st
cr.SecretKey = opts.secretKey
}
if opts.comment != "" {
cr.Comment = opts.comment
}
switch opts.status {
// The caller did not ask to update status account, do nothing
case "":