matching config name to storage backend (#5670)

This commit is contained in:
Chris Hoffman 2018-11-02 11:15:07 -04:00 committed by GitHub
parent 0b44a55d22
commit 237fa63908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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{