Skip to content

Commit 9fcc29d

Browse files
Update Resource id for Compute_network_endpoints (#11240) (#7806)
[upstream:578efcf435f89758e1927218e730d872acedd36d] Signed-off-by: Modular Magician <[email protected]>
1 parent edd5e59 commit 9fcc29d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: .changelog/11240.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:note
2+
compute: updated resource id for `compute_network_endpoints`
3+
```

Diff for: google-beta/services/compute/resource_compute_network_endpoints.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func resourceComputeNetworkEndpointsCreate(d *schema.ResourceData, meta interfac
285285
}
286286

287287
// Store the ID now
288-
id, err := tpgresource.ReplaceVars(d, config, "{{project}}/{{zone}}/{{network_endpoint_group}}/endpoints")
288+
id, err := tpgresource.ReplaceVars(d, config, "{{project}}/{{zone}}/{{network_endpoint_group}}")
289289
if err != nil {
290290
return fmt.Errorf("Error constructing id: %s", err)
291291
}
@@ -628,7 +628,7 @@ func resourceComputeNetworkEndpointsImport(d *schema.ResourceData, meta interfac
628628
}
629629

630630
// Replace import id for the resource id
631-
id, err := tpgresource.ReplaceVars(d, config, "{{project}}/{{zone}}/{{network_endpoint_group}}/endpoints")
631+
id, err := tpgresource.ReplaceVars(d, config, "{{project}}/{{zone}}/{{network_endpoint_group}}")
632632
if err != nil {
633633
return nil, fmt.Errorf("Error constructing id: %s", err)
634634
}

Diff for: website/docs/r/compute_network_endpoints.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ The following arguments are supported:
170170

171171
In addition to the arguments listed above, the following computed attributes are exported:
172172

173-
* `id` - an identifier for the resource with format `{{project}}/{{zone}}/{{network_endpoint_group}}/endpoints`
173+
* `id` - an identifier for the resource with format `{{project}}/{{zone}}/{{network_endpoint_group}}`
174174

175175

176176
## Timeouts

0 commit comments

Comments
 (0)