Skip to content

Commit

Permalink
rgw/admin: correct example
Browse files Browse the repository at this point in the history
the function `co.GetUser()` needs -
ctx and type user not string

Signed-off-by: rakeshgm <rakeshgm@redhat.com>
  • Loading branch information
rakeshgm authored and mergify[bot] committed Dec 13, 2021
1 parent 0443277 commit a833cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rgw/admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
}

// Get the "admin" user
user, err := co.GetUser(context.Background(), "admin")
user, err := co.GetUser(context.Background(), admin.User{ID: "admin"})
if err != nil {
panic(err)
}
Expand Down

0 comments on commit a833cd7

Please sign in to comment.