Skip to content

Commit

Permalink
fix: v1 auth create supports multiple buckets (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymmmtym committed Nov 11, 2021
1 parent adc58b8 commit 6a7c4f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/v1_auth/v1_auth.go
Expand Up @@ -100,6 +100,7 @@ func (c Client) Create(ctx context.Context, params *CreateParams) error {
var permissions []api.Permission
for _, bp := range bucketPerms {
for _, p := range bp.perms {
p := p
// verify the input ID
if err := influxid.Validate(p); err != nil {
return fmt.Errorf("invalid bucket ID '%s': %w (did you pass a bucket name instead of an ID?)", p, err)
Expand Down

0 comments on commit 6a7c4f6

Please sign in to comment.