Skip to content

Commit

Permalink
Fix: switch documentation between 'agents' and 'agent_values' data so…
Browse files Browse the repository at this point in the history
…urces (#801)
  • Loading branch information
TomerHeber authored Mar 7, 2024
1 parent 620edef commit 7ec91d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 4 additions & 7 deletions examples/data-sources/env0_agent_values/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
resource "env0_project" "project" {
name = "project"
data "env0_agent_values" "agent_values" {
agent_key = "pr12"
}

data "env0_agents" "agents" {}

resource "env0_agent_project_assignment" "gent_project_assignment" {
agent_id = data.env0_agents.agents.0.agent_key
project_id = env0_project.project.id
output "values" {
value = data.env0_agent_values.agent_values.values
}
11 changes: 7 additions & 4 deletions examples/data-sources/env0_agents/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
data "env0_agent_values" "agent_values" {
agent_key = "pr12"
resource "env0_project" "project" {
name = "project"
}

output "values" {
value = data.env0_agent_values.agent_values.values
data "env0_agents" "agents" {}

resource "env0_agent_project_assignment" "gent_project_assignment" {
agent_id = data.env0_agents.agents.0.agent_key
project_id = env0_project.project.id
}

0 comments on commit 7ec91d0

Please sign in to comment.