terraform/website/upgrade-guides
Martin Atkins c94f8f9067 website: Document division behavior change in v0.12 upgrade guide
The division operator now always performs floating point division, whereas
before it would choose between float and int division based on the types
of its arguments.

We have a specific error message for when a fractional number is used as
an index in HCL, but this additional upgrade guidance provides a specific
solution to the problem: the floor function.

Sadly we don't have enough context in the current design of the upgrade
tool to make this fix automatic. With some refactoring it may be possible
to apply the fix automatically within list brackets, but since that is
a relatively complex change we'll first try this manual solution prompted
by an error message, because in practice so far we've seen this reported
only in the context of list indexing and our error check will catch that
and make the user aware of the need for a fix there.
2019-04-16 10:03:37 -07:00
..
0-7.html.markdown website: Reorganize nav sidebars to improve jumps between sections 2019-01-31 16:18:23 -08:00
0-8.html.markdown website: Reorganize nav sidebars to improve jumps between sections 2019-01-31 16:18:23 -08:00
0-9.html.markdown website: Reorganize nav sidebars to improve jumps between sections 2019-01-31 16:18:23 -08:00
0-10.html.markdown website: Reorganize nav sidebars to improve jumps between sections 2019-01-31 16:18:23 -08:00
0-11.html.markdown website: Fix several spelling errors 2019-03-21 18:12:11 -07:00
0-12.html.markdown website: Document division behavior change in v0.12 upgrade guide 2019-04-16 10:03:37 -07:00
index.html.markdown website: Reorganize nav sidebars to improve jumps between sections 2019-01-31 16:18:23 -08:00