Skip to content

Commit

Permalink
Update Resource id for Compute_network_endpoints (#11240) (#7806)
Browse files Browse the repository at this point in the history
[upstream:578efcf435f89758e1927218e730d872acedd36d]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Jul 24, 2024
1 parent edd5e59 commit 9fcc29d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/11240.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
compute: updated resource id for `compute_network_endpoints`
```
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/compute_network_endpoints.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fcc29d

Please sign in to comment.