mirror of https://github.com/ceph/go-ceph
rgw/admin: Fixup for 6f90ce1
Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
parent
6f90ce139c
commit
d34f8b95c1
|
@ -26,7 +26,7 @@ type User struct {
|
||||||
UserQuota QuotaSpec `json:"user_quota"`
|
UserQuota QuotaSpec `json:"user_quota"`
|
||||||
TempURLKeys []interface{} `json:"temp_url_keys"`
|
TempURLKeys []interface{} `json:"temp_url_keys"`
|
||||||
Type string `json:"type"`
|
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"`
|
KeyType string `url:"key-type"`
|
||||||
Tenant string `url:"tenant"`
|
Tenant string `url:"tenant"`
|
||||||
GenerateKey *bool `url:"generate-key"`
|
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
|
// valid parameters not supported by go-ceph: sync
|
||||||
body, err := api.call(ctx, http.MethodGet, "/user", valueToURLParams(user, []string{"uid", "access-key", "stats"}))
|
body, err := api.call(ctx, http.MethodGet, "/user", valueToURLParams(user, []string{"uid", "access-key", "stats"}))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return User{}, err
|
return User{}, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue