Merge pull request #8731 from TimeIncOSS/b-fix-aws-validation-crash
provider/aws: Prevent crash on account ID validation
This commit is contained in:
commit
1bd964b516
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue