Skip to content
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

[DOCS]: github_organization name is not listed as required, but validation fails when missing #2263

Open
1 task done
dannysauer opened this issue May 14, 2024 · 0 comments
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Documentation Improvements or additions to documentation

Comments

@dannysauer
Copy link

Describe the need

I want to get the owner name for the provider. It seemed that the most reasonable way to do this is with an empty github_organization data source, since the documentation does not indicate that the name is required. However, when attempting to validate my config, I get a failure indicating that name is, in fact, required.

Ideally, the documentation would be accurate, and the name would end up being the owner field from the provider, or the auth'd username otherwise. :)

Example code:

# default github provider
provider "github" {}

# operations in determined-ai github project
provider "github" {
  alias = "determined"
  owner = "determined-ai"
}

data "github_organization" "determined_ai" {
  provider = github.determined
}

I then expected to be able to use "https://github.com/${data.github_organization.determined_ai.orgname}" later to get "https://github.com/determined-ai".

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@dannysauer dannysauer added Status: Triage This is being looked at and prioritized Type: Documentation Improvements or additions to documentation labels May 14, 2024
@kfcampbell kfcampbell added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants