Skip to content

Commit e0e60dd

Browse files
authored
Merge branch 'main' into TF-11775-terraform-provider-tfe-gh-issue-1189-provider-error-when-re-creating-tfe-registry-gpg-key-and-using-provider-default-organization
2 parents 39c3fba + bbae4b8 commit e0e60dd

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
BUG FIXES:
44
* `r/tfe_admin_organization_settings`: Fixed default provider organization usage, by @brandonc [1183](https://github.com/hashicorp/terraform-provider-tfe/pull/1183)
55
* `r/tfe_registry_gpg_key`: Fixed update plans when using default organization, by @brandonc [1190](https://github.com/hashicorp/terraform-provider-tfe/pull/1190)
6+
* `/r/tfe_workspace_settings`: Fix compatibility with older versions of Terraform Enterprise when using agent execution by @brandonc [1193](https://github.com/hashicorp/terraform-provider-tfe/pull/1193)
67

78
# v0.51.0
89

internal/provider/resource_tfe_workspace_settings.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,11 @@ func (m unknownIfExecutionModeUnset) PlanModifyString(ctx context.Context, req p
166166
if configured.ExecutionMode.IsNull() && overwritesState[0].ExecutionMode.ValueBool() {
167167
resp.PlanValue = types.StringUnknown()
168168
}
169-
} else if req.Path.Equal(path.Root("execution_mode")) {
169+
} else if configured.ExecutionMode.IsNull() && req.Path.Equal(path.Root("execution_mode")) {
170170
// TFE does not support overwrites so default the execution mode to "remote"
171171
resp.PlanValue = types.StringValue("remote")
172+
} else if configured.AgentPoolID.IsNull() && req.Path.Equal(path.Root("agent_pool_id")) {
173+
resp.PlanValue = types.StringNull()
172174
}
173175
}
174176

website/docs/d/github_installation.html.markdown

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,29 @@ Use this data source to get information about the Github App Installation.
1515

1616
```hcl
1717
data "tfe_github_app_installation" "gha_installation" {
18-
installation_id = 12345
18+
installation_id = 12345678
1919
}
2020
```
2121

2222
### Finding a Github App Installation by its name
2323

2424
```hcl
2525
data "tfe_github_app_installation" "gha_installation" {
26-
name = "installation_name"
26+
name = "github_username_or_organization"
2727
}
2828
```
2929

3030
## Argument Reference
3131

32-
The following arguments are supported. At least one of `name`, `installation_id` must be set.
32+
The following arguments are supported. At least one of `name`, `installation_id` must be set.
33+
34+
* `installation_id` - (Optional) ID of the Github Installation. The installation ID can be found in the URL slug when visiting the installation's configuration page, e.g `https://github.com/settings/installations/12345678`.
35+
* `name` - (Optional) Name of the Github user or organization account that installed the app.
3336

34-
* `installation_id` - (Optional) ID of the Github Installation as shown in Github.
35-
* `name` - (Optional) Name of the Github Installation as shown in Github.
36-
3737
Must be one of: `installation_id` or `name`.
3838

3939
## Attributes Reference
4040

4141
In addition to all arguments above, the following attributes are exported:
4242

43-
* `id` - The internal ID of the Github Installation. This is different from the `installation_id`.
43+
* `id` - The internal ID of the Github Installation. This is different from the `installation_id`.

0 commit comments

Comments
 (0)