Merge pull request #3313 from sarguru/iam_validateaccount_fixcrash

Fix ValidateAccountId for IAM Instance Profiles
This commit is contained in:
Paul Hinze 2015-10-07 12:18:38 -05:00
commit 7905b91b8a
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ func (c *Config) ValidateAccountId(iamconn *iam.IAM) error {
// User may be an IAM instance profile, so fail silently. // User may be an IAM instance profile, so fail silently.
// If it is an IAM instance profile // If it is an IAM instance profile
// validating account might be superfluous // validating account might be superfluous
return nil
} else { } else {
return fmt.Errorf("Failed getting account ID from IAM: %s", err) return fmt.Errorf("Failed getting account ID from IAM: %s", err)
// return error if the account id is explicitly not authorised // return error if the account id is explicitly not authorised