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

Plan variables are forced to be string #86

Closed
xescugc opened this issue Apr 26, 2023 · 0 comments · Fixed by #87
Closed

Plan variables are forced to be string #86

xescugc opened this issue Apr 26, 2023 · 0 comments · Fixed by #87
Assignees

Comments

@xescugc
Copy link
Member

xescugc commented Apr 26, 2023

For some reason we forced the plan.variables to have the value of type string, this was causing errors like

Error: unable to estimate terraform plan file: unable to estimate cost insfrastructure: [ Unexpected message from the external service Cost Estimation: json: cannot unmarshal object into Go struct field Variable.variables.value of type string]

Error: unable to estimate terraform plan file: unable to estimate cost insfrastructure: [ Unexpected message from the external service Cost Estimation: json: cannot unmarshal bool into Go struct field Variable.variables.value of type string]

We'll fix this by changing the type to interface{} and casting it to string when we need to.

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 a pull request may close this issue.

1 participant