diff --git a/google/resource_service_networking_connection.go b/google/resource_service_networking_connection.go index b0342b62cb8..42c1f716ab1 100644 --- a/google/resource_service_networking_connection.go +++ b/google/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()))