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

Checks: instance_key should be of type interface{} #94

Merged

Conversation

sebasslash
Copy link
Contributor

This PR fixes a bug when unmarshalling a JSON plan containing checks, where instance_key fields are a number rather than a string. An instance key can be either a string or a number, so this PR changes the type to be interface{} and adds a test to ensure that the instance key is one of those two valid types.

@sebasslash sebasslash requested review from a team as code owners June 27, 2023 21:04
@sebasslash sebasslash force-pushed the sebasslash/invalid-instance-key-type branch from ab83c2a to 441668c Compare June 27, 2023 21:07
@sebasslash sebasslash force-pushed the sebasslash/invalid-instance-key-type branch from 441668c to 614de2a Compare June 27, 2023 21:24
@liamcervante liamcervante merged commit a17c11b into hashicorp:main Jun 30, 2023
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants