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
if isinstance(value, float):
return str(value)
Workaround:
No found workaround
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