matching config name to storage backend (#5670)
This commit is contained in:
parent
0b44a55d22
commit
237fa63908
|
@ -89,8 +89,12 @@ func (k *AliCloudKMSSeal) SetConfig(config map[string]string) (map[string]string
|
|||
credConfig.AccessKeyID = accessKey
|
||||
}
|
||||
|
||||
if accessSecret, ok := config["access_secret"]; ok {
|
||||
credConfig.AccessKeySecret = accessSecret
|
||||
if secretKey, ok := config["secret_key"]; ok {
|
||||
credConfig.AccessKeySecret = secretKey
|
||||
} else {
|
||||
if accessSecret, ok := config["access_secret"]; ok {
|
||||
credConfig.AccessKeySecret = accessSecret
|
||||
}
|
||||
}
|
||||
|
||||
credentialChain := []providers.Provider{
|
||||
|
|
Loading…
Reference in New Issue