Skip to content

Commit 9e6aba7

Browse files
docs: fixed tfe_workspace & tfe_workspace_run examples (#1814)
* Update workspace_run.html.markdown example with organization name name In the ## Example Usage the argument `organization` for resources `tfe_workspace` and `tfe_oauth_client` is missing the attribute reference `.name` * Update workspace.html.markdown In the ## Example Usage the argument `organization` for resources `tfe_workspace.parent` and `tfe_oauth_client` is missing the attribute reference `.name` * Update CHANGELOG.md Documentation Example Usages bug fixes --------- Co-authored-by: StamatisChr <[email protected]>
1 parent cf9c14c commit 9e6aba7

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
BUG FIXES:
66
* `r/tfe_notification_configuration`: update url attribute to be sensitive, by @jillirami [#1799](https://github.com/hashicorp/terraform-provider-tfe/pull/1799)
7+
* `r/tfe_workspace`: fixed documentation Example Usages to use the `tfe_organization.test-organization.name` as organization name
8+
* `r/tfe_workspace_run`: fixed documentation Example Usages to use the `tfe_organization.test-organization.name` as organization name
79

10+
811
## v0.68.2
912

1013
BUG FIXES:

website/docs/r/workspace.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ resource "tfe_organization" "test-organization" {
4040
}
4141
4242
resource "tfe_oauth_client" "test" {
43-
organization = tfe_organization.test-organization
43+
organization = tfe_organization.test-organization.name
4444
api_url = "https://api.github.com"
4545
http_url = "https://github.com"
4646
oauth_token = "oauth_token_id"
@@ -49,7 +49,7 @@ resource "tfe_oauth_client" "test" {
4949
5050
resource "tfe_workspace" "parent" {
5151
name = "parent-ws"
52-
organization = tfe_organization.test-organization
52+
organization = tfe_organization.test-organization.name
5353
queue_all_runs = false
5454
vcs_repo {
5555
branch = "main"

website/docs/r/workspace_run.html.markdown

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resource "tfe_organization" "test-organization" {
3030
}
3131
3232
resource "tfe_oauth_client" "test" {
33-
organization = tfe_organization.test-organization
33+
organization = tfe_organization.test-organization.name
3434
api_url = "https://api.github.com"
3535
http_url = "https://github.com"
3636
oauth_token = "oauth_token_id"
@@ -39,7 +39,7 @@ resource "tfe_oauth_client" "test" {
3939
4040
resource "tfe_workspace" "parent" {
4141
name = "parent-ws"
42-
organization = tfe_organization.test-organization
42+
organization = tfe_organization.test-organization.name
4343
queue_all_runs = false
4444
vcs_repo {
4545
branch = "main"
@@ -50,7 +50,7 @@ resource "tfe_workspace" "parent" {
5050
5151
resource "tfe_workspace" "child" {
5252
name = "child-ws"
53-
organization = tfe_organization.test-organization
53+
organization = tfe_organization.test-organization.name
5454
queue_all_runs = false
5555
vcs_repo {
5656
branch = "main"
@@ -105,7 +105,7 @@ resource "tfe_organization" "test-organization" {
105105
}
106106
107107
resource "tfe_oauth_client" "test" {
108-
organization = tfe_organization.test-organization
108+
organization = tfe_organization.test-organization.name
109109
api_url = "https://api.github.com"
110110
http_url = "https://github.com"
111111
oauth_token = "oauth_token_id"
@@ -114,7 +114,7 @@ resource "tfe_oauth_client" "test" {
114114
115115
resource "tfe_workspace" "parent" {
116116
name = "parent-ws"
117-
organization = tfe_organization.test-organization
117+
organization = tfe_organization.test-organization.name
118118
queue_all_runs = false
119119
vcs_repo {
120120
branch = "main"
@@ -147,7 +147,7 @@ resource "tfe_organization" "test-organization" {
147147
}
148148
149149
resource "tfe_oauth_client" "test" {
150-
organization = tfe_organization.test-organization
150+
organization = tfe_organization.test-organization.name
151151
api_url = "https://api.github.com"
152152
http_url = "https://github.com"
153153
oauth_token = "oauth_token_id"
@@ -156,7 +156,7 @@ resource "tfe_oauth_client" "test" {
156156
157157
resource "tfe_workspace" "parent" {
158158
name = "parent-ws"
159-
organization = tfe_organization.test-organization
159+
organization = tfe_organization.test-organization.name
160160
queue_all_runs = false
161161
vcs_repo {
162162
branch = "main"

0 commit comments

Comments
 (0)