terraform/config
Mitchell Hashimoto b3f80b9469
config: maintain slice index accounting for computed keys
Fixes #10075
Fixes #10013

When interpolating, we were only maintaining the last known slice index.
If you had sibling slices then you could lose your slice index when
exiting the slice. The resulting behavior was that no some runs the
computed key would be: "slice.0.attr" and on others would be
"slice.attr", the latter being incorrect.

We now maintain a list of slice indexes so that as we unnest, we
properly restore the old value.

Surprisingly unrelated to the graph but the shadow graph caught this
which is great. :)
2016-11-14 18:33:29 -08:00
..
module config/module: tree.Child on a nil tree works 2016-10-19 13:38:49 -07:00
test-fixtures Merge pull request #10080 from hashicorp/f-tf-version 2016-11-14 11:53:30 -08:00
append.go
append_test.go
config.go Merge pull request #10080 from hashicorp/f-tf-version 2016-11-14 11:53:30 -08:00
config_string.go config: parse depends_on for outputs 2016-11-11 17:46:34 -08:00
config_test.go Merge pull request #10080 from hashicorp/f-tf-version 2016-11-14 11:53:30 -08:00
config_tree.go
import_tree.go
interpolate.go config: use ast.TypeUnknown and don't remove computed values 2016-11-09 14:28:15 -08:00
interpolate_funcs.go config: formatlist accepts an empty list 2016-11-01 22:57:11 -07:00
interpolate_funcs_test.go config: formatlist accepts an empty list 2016-11-01 22:57:11 -07:00
interpolate_test.go config: use ast.TypeUnknown and don't remove computed values 2016-11-09 14:28:15 -08:00
interpolate_walk.go config: maintain slice index accounting for computed keys 2016-11-14 18:33:29 -08:00
interpolate_walk_test.go config: use ast.TypeUnknown and don't remove computed values 2016-11-09 14:28:15 -08:00
lang.go
loader.go command/import: load configurations and allow empty config dirs 2016-11-09 15:08:22 -08:00
loader_hcl.go Merge pull request #10080 from hashicorp/f-tf-version 2016-11-14 11:53:30 -08:00
loader_hcl_test.go
loader_test.go Merge pull request #10080 from hashicorp/f-tf-version 2016-11-14 11:53:30 -08:00
merge.go
merge_test.go
raw_config.go config: use ast.TypeUnknown and don't remove computed values 2016-11-09 14:28:15 -08:00
raw_config_test.go config: maintain slice index accounting for computed keys 2016-11-14 18:33:29 -08:00
resource_mode.go
resource_mode_string.go
testing.go terraform: rename attach config to only attach provider config 2016-10-19 13:38:51 -07:00