Skip to content

data_source_access_context_manager_access interface conversion error #21740

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

Assignees
Labels

Comments

@apeabody
Copy link

apeabody commented Mar 6, 2025

Community Note

panic: interface conversion: interface {} is nil, not []interface {} in github.com/hashicorp/terraform-provider-google/google/services/accesscontextmanager/data_source_access_context_manager_access_policy.go:107

Terraform Version & Provider Version(s)

Terraform v1.10.5

  • provider registry.terraform.io/hashicorp/google v6.24.0

Affected Resource(s)

data "google_access_context_manager_access_policy"

Terraform Configuration

No response

Debug Output

No response

Expected Behavior

No response

Actual Behavior

No response

Steps to reproduce

No response

Important Factoids

No response

References

No response

@ggtisc
Copy link
Collaborator

ggtisc commented Mar 12, 2025

Hi @apeabody

Could you explain the steps and code to reproduce this issue?

@apeabody
Copy link
Author

Hi @ggtisc - a data "google_access_context_manager_access_policy" was used for which the policy no longer existed.

The type conversion from []interface{} wasn't checked to be valid: https://github.com/hashicorp/terraform-provider-google/pull/21845/files#diff-d7d81b0530486af8b5d3f93efaa300b7a0210b9737562f0b1e29e418dfc9fa9eR107

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.