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

Error using datasource to fetch default organization #1899

Open
PabloPie opened this issue Nov 12, 2024 · 0 comments
Open

Error using datasource to fetch default organization #1899

PabloPie opened this issue Nov 12, 2024 · 0 comments

Comments

@PabloPie
Copy link

PabloPie commented Nov 12, 2024

Terraform Version

1.9.0 and 1.6.0

Terraform Grafana Provider Version

3.13.1

Grafana Version

v11.2.0

Affected Resource(s)

  • datasource grafana_organization

Terraform Configuration Files

data "grafana_organization" "org" {
  name = "my-org"
}

Expected Behavior

my-org is read from Grafana

Actual Behavior

Terraform plan returns an error, from Terraform logs:

[ERROR] provider.terraform-provider-grafana_v3.13.1: Response contains error diagnostic: tf_req_id=6d9f84d0-0e1e-8be5-14c6-4afedbe39369 @module=sdk.proto tf_proto_version=5.6 tf_rpc=ReadDataSource diagnostic_severity=ERROR tf_provider_addr=registry.terraform.io/grafana/grafana diagnostic_summary="error setting nones: Invalid address to set: []string{"nones"}" tf_data_source_type=grafana_organization @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail=""

Trying other organizations didn't return the same error, I suspect this is happening only with the default organization (set through the env variables GF_USERS_AUTO_ASSIGN_ORG and GF_USERS_AUTO_ASSIGN_ORG_ID).

Steps to Reproduce

Simply planning the Terraform config with the datasource fails.

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant