Skip to content

Commit

Permalink
Add accountbuilder even if there's an error creating it. (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreer authored Jul 16, 2024
1 parent 1873f5d commit 6bc359f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,9 @@ func (c *AWS) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSy
if c.orgsEnabled {
orgClient, err := c.orgClient(ctx)
if err == nil {
rs = append(rs, accountBuilder(orgClient, c.roleARN, ssoAdminClient, ix, c.ssoRegion, identityStoreClient))
} else {
l.Error("accountBuilder error", zap.Error(err))
}
rs = append(rs, accountBuilder(orgClient, c.roleARN, ssoAdminClient, ix, c.ssoRegion, identityStoreClient))
}
return rs
}
Expand Down

0 comments on commit 6bc359f

Please sign in to comment.