aws: Let acc ID validation fail when we have no ID

- we could've had ConflictsWith between affected fields, but that would make it fail even if skip_requesting_account_id=false and ConflictsWhen is not a thing (yet)
This commit is contained in:
Radek Simko 2016-08-10 17:29:07 +01:00
parent 0ab3bc4105
commit 0e1bccafed
No known key found for this signature in database
GPG Key ID: 4DECCD28668ED457
1 changed files with 4 additions and 4 deletions

View File

@ -217,11 +217,11 @@ func (c *Config) Client() (interface{}, error) {
if err == nil {
client.accountid = accountId
}
}
authErr := c.ValidateAccountId(client.accountid)
if authErr != nil {
errs = append(errs, authErr)
}
authErr := c.ValidateAccountId(client.accountid)
if authErr != nil {
errs = append(errs, authErr)
}
client.apigateway = apigateway.New(sess)