Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
bugfix: global resources only collected partially
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgenypats committed Mar 14, 2021
1 parent c82b18d commit a949e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ func (p *Provider) fetchAccount(accountID string, awsCfg aws.Config, svc *sts.Cl
resourceName := resourcePath[1]
resourceConfig := r.Other
if globalServices[serviceName] != nil {
if globalServicesFetched[serviceName] {
if globalServicesFetched[r.Name] {
continue
}
globalServicesFetched[serviceName] = true
globalServicesFetched[r.Name] = true
}
g.Go(func() error {
err := resourceClients[serviceName].CollectResource(resourceName, resourceConfig)
Expand Down

0 comments on commit a949e28

Please sign in to comment.