From c7bf4fc8d36b8b8da75e48adb12b3305ddc257d5 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Wed, 14 Dec 2016 04:33:06 -0500 Subject: [PATCH] Correct error message for 'aws_caller_identity' acceptance test. (#10712) --- builtin/providers/aws/data_source_aws_caller_identity_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/data_source_aws_caller_identity_test.go b/builtin/providers/aws/data_source_aws_caller_identity_test.go index 40b45ef987..f874d7da94 100644 --- a/builtin/providers/aws/data_source_aws_caller_identity_test.go +++ b/builtin/providers/aws/data_source_aws_caller_identity_test.go @@ -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