diff --git a/third_party/terraform/tests/resource_compute_target_http_proxy_test.go b/third_party/terraform/tests/resource_compute_target_http_proxy_test.go index 52c88de7c495..e8be2e57a0e4 100644 --- a/third_party/terraform/tests/resource_compute_target_http_proxy_test.go +++ b/third_party/terraform/tests/resource_compute_target_http_proxy_test.go @@ -54,7 +54,7 @@ func testAccCheckComputeTargetHttpProxyExists(n string) resource.TestCheckFunc { } config := testAccProvider.Meta().(*Config) - name := rs.Attributes["name"] + name := rs.Primary.Attributes["name"] found, err := config.clientCompute.TargetHttpProxies.Get( config.Project, name).Do()