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

Use msgpack to encoding to pass cty.Value in variable default #96

Merged
merged 2 commits into from
Jan 22, 2021

Conversation

syndicut
Copy link
Contributor

This is a follow-up PR for terraform-linters/tflint#1041

)

// Variable is an intermediate representation of configs.Variable.
type Variable struct {
Name string
Description string
Default cty.Value
Default []byte
Type cty.Type
Copy link
Member

Choose a reason for hiding this comment

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

Oh, I thought that cty.Type needs to be converted as well, but if you can't explicitly declare cty.unknownType in the Terraform config, it might be okay.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately it can =( With "any" keyword in type, so I will make another PR

@wata727 wata727 merged commit 06d5c0a into terraform-linters:master Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants