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

🐛 fix for terraform <cannot get hcl block> err #1741

Merged
merged 1 commit into from
Sep 15, 2023
Merged

Conversation

vjeffrey
Copy link
Contributor

fixes #1737

}
*/
r := res.(*mqlTerraformBlock)
r.block = plugin.TValue[*hcl.Block]{State: plugin.StateIsSet, Data: block}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we pass this in the args as an mql resource, i.e. llx.ResourceData?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for the internal implementation,


type mqlTerraformBlockInternal struct {
	block      plugin.TValue[*hcl.Block]
	cachedFile plugin.TValue[*hcl.File]
}

Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add error handling, then LGTM

providers/terraform/resources/hcl.go Show resolved Hide resolved
@vjeffrey vjeffrey merged commit c5f61bc into main Sep 15, 2023
@vjeffrey vjeffrey deleted the vj/terraform-fix branch September 15, 2023 18:07
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terraform plugin error: cannot get hcl block
4 participants