Merge pull request #8731 from TimeIncOSS/b-fix-aws-validation-crash

provider/aws: Prevent crash on account ID validation
This commit is contained in:
Paul Stack 2016-09-08 12:49:55 +01:00 committed by GitHub
commit 1bd964b516
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ func (c *Config) Client() (interface{}, error) {
authErr := c.ValidateAccountId(client.accountid)
if authErr != nil {
return nil, err
return nil, authErr
}
client.apigateway = apigateway.New(sess)