From d34f8b95c193354bfcb95e41e154807aebb6c84e Mon Sep 17 00:00:00 2001 From: Sven Anderson Date: Tue, 13 Feb 2024 16:29:19 +0900 Subject: [PATCH] rgw/admin: Fixup for 6f90ce1 Signed-off-by: Sven Anderson --- rgw/admin/user.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rgw/admin/user.go b/rgw/admin/user.go index f8f1f23..828189f 100644 --- a/rgw/admin/user.go +++ b/rgw/admin/user.go @@ -26,7 +26,7 @@ type User struct { UserQuota QuotaSpec `json:"user_quota"` TempURLKeys []interface{} `json:"temp_url_keys"` Type string `json:"type"` - MfaIDs []interface{} `json:"mfa_ids"` + MfaIds []interface{} `json:"mfa_ids"` //revive:disable-line:var-naming old-yet-exported public api KeyType string `url:"key-type"` Tenant string `url:"tenant"` GenerateKey *bool `url:"generate-key"` @@ -120,7 +120,6 @@ func (api *API) GetUser(ctx context.Context, user User) (User, error) { // valid parameters not supported by go-ceph: sync body, err := api.call(ctx, http.MethodGet, "/user", valueToURLParams(user, []string{"uid", "access-key", "stats"})) - if err != nil { return User{}, err }