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
Here are some terraform examples of what triggers the error: locals { issue1 = 12345 * 0.5 issue2 = floor(429496729.6) }
locals { issue1 = 12345 * 0.5 issue2 = floor(429496729.6) }
The error: RuntimeError: Invalid type to convert to inline HCL: <class 'float'>
Potential fix?: https://github.com/amplify-education/python-hcl2/blob/main/hcl2/transformer.py#L352
if isinstance(value, float): return str(value)
Workaround: No found workaround
The text was updated successfully, but these errors were encountered:
DictTransformer.to_tf_inline
kkozik-amplify
Successfully merging a pull request may close this issue.
Here are some terraform examples of what triggers the error:
locals { issue1 = 12345 * 0.5 issue2 = floor(429496729.6) }
The error:
RuntimeError: Invalid type to convert to inline HCL: <class 'float'>
Potential fix?:
https://github.com/amplify-education/python-hcl2/blob/main/hcl2/transformer.py#L352
Workaround:
No found workaround
The text was updated successfully, but these errors were encountered: