mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 04:55:22 +00:00
Merge pull request #6558 from kaovilai/s3profilefix
GetS3Credentials pass profile from config to NewSharedCredentials
This commit is contained in:
1
changelogs/unreleased/6558-kaovilai
Normal file
1
changelogs/unreleased/6558-kaovilai
Normal file
@@ -0,0 +1 @@
|
||||
Non default s3 credential profiles work on Unified Repository Provider (kopia)
|
||||
@@ -70,7 +70,7 @@ func GetS3Credentials(config map[string]string) (*credentials.Value, error) {
|
||||
return nil, errors.New("missing credential file")
|
||||
}
|
||||
|
||||
creds := credentials.NewSharedCredentials(credentialsFile, "")
|
||||
creds := credentials.NewSharedCredentials(credentialsFile, config[awsProfileKey])
|
||||
credValue, err := creds.Get()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user