Skip to content

Commit

Permalink
fix: fix CrossAccountName
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Nov 12, 2024
1 parent 595a998 commit 8614ba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/describer/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ func doDescribe(
return nil, fmt.Errorf(" account credentials: %w", err)
}
crossAccountName := strings.Split(job.IntegrationLabels["CrossAccountRoleARN"], "/")
creds.CrossAccountRoleName = crossAccountName[1]
if len(crossAccountName) > 1 {
creds.CrossAccountRoleName = crossAccountName[1]
}
creds.AccountID = job.ProviderID

logger.Info("Creds", zap.Any("creds", creds))
Expand Down

0 comments on commit 8614ba0

Please sign in to comment.