diff --git a/build/terraform b/build/terraform index f491302ad8ed..ef6394ca683d 160000 --- a/build/terraform +++ b/build/terraform @@ -1 +1 @@ -Subproject commit f491302ad8ed8dc02d23967aee1c50c620764ea2 +Subproject commit ef6394ca683ddd299075bbe2cace3fe4d239022d diff --git a/build/terraform-beta b/build/terraform-beta index 3c55030cc808..19b06c4b38c9 160000 --- a/build/terraform-beta +++ b/build/terraform-beta @@ -1 +1 @@ -Subproject commit 3c55030cc8089713b6dccad9ad642c99b4c67f4c +Subproject commit 19b06c4b38c9f29d0dd3c39d3b9112370bf0210b diff --git a/third_party/terraform/resources/resource_service_networking_connection.go b/third_party/terraform/resources/resource_service_networking_connection.go index b0342b62cb8a..42c1f716ab1c 100644 --- a/third_party/terraform/resources/resource_service_networking_connection.go +++ b/third_party/terraform/resources/resource_service_networking_connection.go @@ -177,11 +177,12 @@ func resourceServiceNetworkingConnectionDelete(d *schema.ResourceData, meta inte obj["name"] = peering url := fmt.Sprintf("%s%s/removePeering", config.ComputeBasePath, serviceNetworkingNetworkName) - project, err := getProject(d, config) + networkFieldValue, err := ParseNetworkFieldValue(network, d, config) if err != nil { - return err + return errwrap.Wrapf("Failed to retrieve network field value, err: {{err}}", err) } + project := networkFieldValue.Project res, err := sendRequestWithTimeout(config, "POST", project, url, obj, d.Timeout(schema.TimeoutUpdate)) if err != nil { return handleNotFoundError(err, d, fmt.Sprintf("ServiceNetworkingConnection %q", d.Id()))