We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use this code:
tfParamPath := "module." + moduleName + "." + field hclDoc, err := hclq.FromFile(file) if err != nil { return []string{}, errors.Wrapf(err, "Failed to read terraform file: %s", file) } res, err := hclDoc.GetAsList(tfParamPath)
But it fail with error: key 'partner_ips' found but is of wrong type, query requested key/literal, found list
key 'partner_ips' found but is of wrong type, query requested key/literal, found list
I use github.com/mattolenik/hclq v0.0.0-20190520172613-e55c48cdefcc
github.com/mattolenik/hclq v0.0.0-20190520172613-e55c48cdefcc
The text was updated successfully, but these errors were encountered:
Solved. Sorry i have lost [] at the end of the query
[]
Sorry, something went wrong.
Well the error message certainly could be improved, so thanks for raising the issue! I opened #18 to track improving the message.
No branches or pull requests
I use this code:
But it fail with error:
key 'partner_ips' found but is of wrong type, query requested key/literal, found list
I use
github.com/mattolenik/hclq v0.0.0-20190520172613-e55c48cdefcc
The text was updated successfully, but these errors were encountered: