From 9fcc29d9e344ec74d8b325734081b0d5e96840f5 Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 24 Jul 2024 14:59:50 -0700 Subject: [PATCH] Update Resource id for Compute_network_endpoints (#11240) (#7806) [upstream:578efcf435f89758e1927218e730d872acedd36d] Signed-off-by: Modular Magician --- .changelog/11240.txt | 3 +++ .../services/compute/resource_compute_network_endpoints.go | 4 ++-- website/docs/r/compute_network_endpoints.html.markdown | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changelog/11240.txt diff --git a/.changelog/11240.txt b/.changelog/11240.txt new file mode 100644 index 0000000000..85f764cbe8 --- /dev/null +++ b/.changelog/11240.txt @@ -0,0 +1,3 @@ +```release-note:note +compute: updated resource id for `compute_network_endpoints` +``` \ No newline at end of file diff --git a/google-beta/services/compute/resource_compute_network_endpoints.go b/google-beta/services/compute/resource_compute_network_endpoints.go index 792e477648..ccbf56eaa8 100644 --- a/google-beta/services/compute/resource_compute_network_endpoints.go +++ b/google-beta/services/compute/resource_compute_network_endpoints.go @@ -285,7 +285,7 @@ func resourceComputeNetworkEndpointsCreate(d *schema.ResourceData, meta interfac } // Store the ID now - id, err := tpgresource.ReplaceVars(d, config, "{{project}}/{{zone}}/{{network_endpoint_group}}/endpoints") + id, err := tpgresource.ReplaceVars(d, config, "{{project}}/{{zone}}/{{network_endpoint_group}}") if err != nil { return fmt.Errorf("Error constructing id: %s", err) } @@ -628,7 +628,7 @@ func resourceComputeNetworkEndpointsImport(d *schema.ResourceData, meta interfac } // Replace import id for the resource id - id, err := tpgresource.ReplaceVars(d, config, "{{project}}/{{zone}}/{{network_endpoint_group}}/endpoints") + id, err := tpgresource.ReplaceVars(d, config, "{{project}}/{{zone}}/{{network_endpoint_group}}") if err != nil { return nil, fmt.Errorf("Error constructing id: %s", err) } diff --git a/website/docs/r/compute_network_endpoints.html.markdown b/website/docs/r/compute_network_endpoints.html.markdown index 615d6e1a59..8245e507ff 100644 --- a/website/docs/r/compute_network_endpoints.html.markdown +++ b/website/docs/r/compute_network_endpoints.html.markdown @@ -170,7 +170,7 @@ The following arguments are supported: In addition to the arguments listed above, the following computed attributes are exported: -* `id` - an identifier for the resource with format `{{project}}/{{zone}}/{{network_endpoint_group}}/endpoints` +* `id` - an identifier for the resource with format `{{project}}/{{zone}}/{{network_endpoint_group}}` ## Timeouts