provider/aws: Prevent crash on account ID validation

This commit is contained in:
Radek Simko 2016-09-08 11:46:18 +01:00
parent 02a80496d9
commit 3e3043adf4
No known key found for this signature in database
GPG Key ID: 6823F3DCCE01BB19
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)