-
Notifications
You must be signed in to change notification settings - Fork 77
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 panic when calling ParseHCL #62
base: master
Are you sure you want to change the base?
Conversation
In function ParseHCL, not all fields of tfconfig.Module is checked, so panic will happen. Fix #hashicorp#61
@apparentlymart @radeksimko Please help review it. |
Hi @zzxwill Secondly as the comment above the function says, this function is meant to be used only in scenarios where you intend to reuse the parsed files ( Lastly |
Please kindly refer to issue #61 , here is code sample and input files.
I intend to get all variables and their name, type, required, description properties and I only need variables. I'd like to integrate it in another system and tell user what they should input to get a cloud resource.
I didn't get it. I didn't input
|
You could omit the name, but then any potential diagnostics you get from parsing that configuration will be missing that filename. This could make debugging harder when you then deal with diagnostics from more than a single file (which is generally something to be expected in Terraform). |
In function ParseHCL, not all fields of tfconfig.Module is checked,
so panic will happen.
Fix ##61