check access key and secret before run
This commit is contained in:
parent
ee9971a5af
commit
3a240de22e
1 changed files with 2 additions and 2 deletions
|
@ -104,11 +104,11 @@ func FromParameters(parameters map[string]interface{}) (*Driver, error) {
|
|||
// be summoned when GetAuth is called)
|
||||
accessKey, ok := parameters["accesskeyid"]
|
||||
if !ok {
|
||||
accessKey = ""
|
||||
return nil, fmt.Errorf("No accesskeyid parameter provided")
|
||||
}
|
||||
secretKey, ok := parameters["accesskeysecret"]
|
||||
if !ok {
|
||||
secretKey = ""
|
||||
return nil, fmt.Errorf("No accesskeysecret parameter provided")
|
||||
}
|
||||
|
||||
regionName, ok := parameters["region"]
|
||||
|
|
Loading…
Reference in a new issue