Skip to content

Commit

Permalink
Update internal/namespaces/object/v1/s3configfile.go
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Cano <[email protected]>
  • Loading branch information
remyleone and kindermoumoute authored Feb 26, 2025
1 parent 627da63 commit 45e78ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/namespaces/object/v1/s3configfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,15 @@ func newS3Config(ctx context.Context, region scw.Region, name string) (s3config,
return s3config{}, errors.New("no project ID found")
}

if projectID != "" {
accessKey+="@"+projectID
}
config := s3config{
AccessKey: accessKey,
SecretKey: secretKey,
Region: region,
Name: name,
ctx: ctx,
ProjectID: projectID,
}

return config, nil
Expand Down

0 comments on commit 45e78ed

Please sign in to comment.