Correct error message for 'aws_caller_identity' acceptance test. (#10712)

pull/10724/head
Kit Ewbank 9 years ago committed by Paul Stack
parent 014b414839
commit c7bf4fc8d3

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

Loading…
Cancel
Save