Skip to content

Commit 282836b

Browse files
Alexandertimofurrer
authored andcommitted
Fix typo in gitlab_cluster_agent_token example
Fixes #1190
1 parent 6be9174 commit 282836b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/resources/cluster_agent_token.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ data "gitlab_project" "this" {
3838
}
3939
4040
resource "gitlab_cluster_agent" "this" {
41-
project = data.gitlab_project.this
41+
project = data.gitlab_project.this.id
4242
name = "my-agent"
4343
}
4444
4545
resource "gitlab_cluster_agent_token" "this" {
46-
project = data.gitlab_project.this
47-
agent_id = gitlab_cluster_agent.this.id
46+
project = data.gitlab_project.this.id
47+
agent_id = gitlab_cluster_agent.this.agent_id
4848
name = "my-agent-token"
4949
description = "Token for the my-agent used with `gitlab-agent` Helm Chart"
5050
}

examples/resources/gitlab_cluster_agent_token/resource.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ data "gitlab_project" "this" {
1414
}
1515

1616
resource "gitlab_cluster_agent" "this" {
17-
project = data.gitlab_project.this
17+
project = data.gitlab_project.this.id
1818
name = "my-agent"
1919
}
2020

2121
resource "gitlab_cluster_agent_token" "this" {
22-
project = data.gitlab_project.this
23-
agent_id = gitlab_cluster_agent.this.id
22+
project = data.gitlab_project.this.id
23+
agent_id = gitlab_cluster_agent.this.agent_id
2424
name = "my-agent-token"
2525
description = "Token for the my-agent used with `gitlab-agent` Helm Chart"
2626
}

0 commit comments

Comments
 (0)