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)
pull/8114/head
Radek Simko 10 years ago
parent 0ab3bc4105
commit 0e1bccafed
No known key found for this signature in database
GPG Key ID: 4DECCD28668ED457

@ -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)

Loading…
Cancel
Save