provider/aws: Prevent crash on account ID validation
This commit is contained in:
parent
02a80496d9
commit
3e3043adf4
|
@ -232,7 +232,7 @@ func (c *Config) Client() (interface{}, error) {
|
||||||
|
|
||||||
authErr := c.ValidateAccountId(client.accountid)
|
authErr := c.ValidateAccountId(client.accountid)
|
||||||
if authErr != nil {
|
if authErr != nil {
|
||||||
return nil, err
|
return nil, authErr
|
||||||
}
|
}
|
||||||
|
|
||||||
client.apigateway = apigateway.New(sess)
|
client.apigateway = apigateway.New(sess)
|
||||||
|
|
Loading…
Reference in New Issue