provider/aws: Run Configure as part of testAccPreCheck (#14925)

This commit is contained in:
Radek Simko 2017-05-30 16:22:56 +01:00 committed by GitHub
parent bcd57a963c
commit efd1e1ffb3
1 changed files with 4 additions and 0 deletions

View File

@ -46,4 +46,8 @@ func testAccPreCheck(t *testing.T) {
log.Println("[INFO] Test: Using us-west-2 as test region")
os.Setenv("AWS_DEFAULT_REGION", "us-west-2")
}
err := testAccProvider.Configure(terraform.NewResourceConfig(nil))
if err != nil {
t.Fatal(err)
}
}