Skip to content

Commit

Permalink
Correct error message for 'aws_caller_identity' acceptance test. (#10712
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ewbankkit authored and stack72 committed Dec 14, 2016
1 parent 014b414 commit c7bf4fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func testAccCheckAwsCallerIdentityAccountId(n string) resource.TestCheckFunc {

expected := testAccProvider.Meta().(*AWSClient).accountid
if rs.Primary.Attributes["account_id"] != expected {
return fmt.Errorf("Incorrect Account ID: expected %q, got %q", expected, rs.Primary.ID)
return fmt.Errorf("Incorrect Account ID: expected %q, got %q", expected, rs.Primary.Attributes["account_id"])
}

return nil
Expand Down

0 comments on commit c7bf4fc

Please sign in to comment.