mirror of
https://github.com/ceph/go-ceph
synced 2024-12-22 14:13:21 +00:00
rgw/admin: correct example
the function `co.GetUser()` needs - ctx and type user not string Signed-off-by: rakeshgm <rakeshgm@redhat.com>
This commit is contained in:
parent
0443277bb9
commit
a833cd7474
@ -25,7 +25,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get the "admin" user
|
// Get the "admin" user
|
||||||
user, err := co.GetUser(context.Background(), "admin")
|
user, err := co.GetUser(context.Background(), admin.User{ID: "admin"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user