Skip to content

Commit

Permalink
Bugfix: Use API's default value for enableEndpointIndependentMapping (#…
Browse files Browse the repository at this point in the history
…8600) (#6053)

Instead of using a hardcode default of `false` for
`enableEndpointIndependentMapping`, use the default value from the API.

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 11, 2023
1 parent 9e68798 commit 9750369
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .changelog/8600.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```release-note:bug
compute: used APIs default value for field `enable_endpoint_independent_mapping` in resource `google_compute_router_nat`

```
6 changes: 3 additions & 3 deletions google-beta/services/compute/resource_compute_router_nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@ Mutually exclusive with enableEndpointIndependentMapping.`,
},
"enable_endpoint_independent_mapping": {
Type: schema.TypeBool,
Computed: true,
Optional: true,
Description: `Specifies if endpoint independent mapping is enabled. This is enabled by default. For more information
see the [official documentation](https://cloud.google.com/nat/docs/overview#specs-rfcs).`,
Default: true,
Description: `Enable endpoint independent mapping.
For more information see the [official documentation](https://cloud.google.com/nat/docs/overview#specs-rfcs).`,
},
"icmp_idle_timeout_sec": {
Type: schema.TypeInt,
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/compute_router_nat.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ The following arguments are supported:

* `enable_endpoint_independent_mapping` -
(Optional)
Specifies if endpoint independent mapping is enabled. This is enabled by default. For more information
see the [official documentation](https://cloud.google.com/nat/docs/overview#specs-rfcs).
Enable endpoint independent mapping.
For more information see the [official documentation](https://cloud.google.com/nat/docs/overview#specs-rfcs).

* `region` -
(Optional)
Expand Down

0 comments on commit 9750369

Please sign in to comment.