8000 Fix coder_script agent_id reference typos by blink-so[bot] · Pull Request #418 · coder/terraform-provider-coder · GitHub
[go: up one dir, main page]

Skip to content

Fix coder_script agent_id reference typos #418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

blink-so[bot]
Copy link
Contributor
@blink-so blink-so bot commented Jun 27, 2025

Fixes incorrect agent_id references in coder_script examples and documentation.

Changes:

  • Corrected agent_id = coder_agent.dev.agent_id to agent_id = coder_agent.dev.id in 8 locations
  • Updated both examples/resources/coder_script/resource.tf and docs/resources/script.md

Context:
The agent_id field should reference the agent resource's id attribute, not the agent_id field of the agent resource itself. This was inconsistent in the examples where some resources correctly used .id while others incorrectly used .agent_id.

Testing:
Verified all instances of the incorrect pattern have been fixed and no new issues were introduced.

Correct agent_id references from coder_agent.dev.agent_id to coder_agent.dev.id
in both examples and documentation. The agent_id field should reference the
agent resource id, not the
AE6F
 agent_id field of the agent resource.

Co-authored-by: matifali <10648092+matifali@users.noreply.github.com>
Copy link
Contributor Author
blink-so bot commented Jun 27, 2025

Thanks for the quick review and approval! 🎉

@matifali matifali merged commit 6a6f740 into main Jun 27, 2025
6 checks passed
@matifali matifali deleted the fix-coder-script-agent-id-typos branch June 27, 2025 16:02
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0