Skip to content

docs(local-windows-rdp): fix invalid coder_agent.main.name in README examples#875

Open
blinkagent[bot] wants to merge 3 commits intomainfrom
fix/local-windows-rdp-readme-agent-name
Open

docs(local-windows-rdp): fix invalid coder_agent.main.name in README examples#875
blinkagent[bot] wants to merge 3 commits intomainfrom
fix/local-windows-rdp-readme-agent-name

Conversation

@blinkagent
Copy link
Copy Markdown
Contributor

@blinkagent blinkagent Bot commented Apr 24, 2026

Problem

The README examples for the local-windows-rdp module reference coder_agent.main.name, but the coder_agent resource does not export a name attribute (see provider/agent.go). Users copying the example from the registry page hit:

Error: Unsupported attribute
  on main.tf line 179, in module "rdp_desktop":
  179:     agent_name = coder_agent.main.name
This object has no argument, nested block, or exported attribute named "name".

Fix

Replace coder_agent.main.name with the hardcoded string "main" in the two affected examples, matching the convention used in other registry templates (e.g. templates/docker/main.tf). The third example in the README already used a hardcoded string ("windows") correctly.

Created on behalf of @ericpaulsen

@matifali matifali added the version:patch Add to PRs requiring a patch version upgrade label Apr 25, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Version Bump Required

One or more modules in this PR need their versions updated.

To fix this:

  1. Run the version bump script locally:
    ./.github/scripts/version-bump.sh patch
  2. Commit the changes:
    git add . && git commit -m "chore: bump module versions (patch)"
  3. Push your changes

The CI will automatically re-run once you push the updated versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:patch Add to PRs requiring a patch version upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants