Skip to content

Commit

Permalink
add another empty string check for roleArn if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed May 22, 2024
1 parent 067b70a commit fbe4759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/utils/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func GetAWSCredentialsProvider(ctx context.Context, connectorName string, peerCr
AWS: peerCredentials.Credentials,
EndpointUrl: peerCredentials.EndpointUrl,
}, peerCredentials.Region)
if peerCredentials.RoleArn == nil {
if peerCredentials.RoleArn == nil || *peerCredentials.RoleArn == "" {
logger.LoggerFromCtx(ctx).Info("Received AWS credentials from peer for connector: " + connectorName)
return staticProvider, nil
}
Expand Down

0 comments on commit fbe4759

Please sign in to comment.