Skip to content

Commit

Permalink
google/rsc: fix wrong variable name for bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
tormath1 committed Apr 24, 2020
1 parent c8c9304 commit 3e0589e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions google/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ func computeDisk(ctx context.Context, g *google, resourceType string, filters *f
}

func storageBucket(ctx context.Context, g *google, resourceType string, filters *filter.Filter) ([]provider.Resource, error) {
rules, err := g.gcpr.ListBuckets(ctx)
buckets, err := g.gcpr.ListBuckets(ctx)
if err != nil {
return nil, errors.Wrap(err, "unable to list global forwarding rules from reader")
}
resources := make([]provider.Resource, 0)
for _, rule := range rules {
r := provider.NewResource(rule.Name, resourceType, g)
for _, bucket := range buckets {
r := provider.NewResource(bucket.Name, resourceType, g)
resources = append(resources, r)
}
return resources, nil
Expand Down

0 comments on commit 3e0589e

Please sign in to comment.