terraform/builtin/providers/test
Mitchell Hashimoto c6d0333dc0
flatmap: mark computed list as a computed value in Expand
Fixes #12183

The fix is in flatmap for this but the entire issue is a bit more
complex. Given a schema with a computed set, if you reference it like
this:

    lookup(attr[0], "field")

And "attr" contains a computed set within it, it would panic even though
"field" is available. There were a couple avenues I could've taken to
fix this:

1.) Any complex value containing any unknown value at any point is
entirely unknown.

2.) Only the specific part of the complex value is unknown.

I took route 2 so that the above works without any computed (since
"name" is not computed but something else is). This may actually have an
effect on other parts of Terraform configs, however those similar
configs would've simply crashed previously so it shouldn't break any
pre-existing configs.
2017-02-23 10:03:59 -08:00
..
data_source.go provider/test: Add test of data source count.index 2016-09-03 13:58:30 -07:00
data_source_test.go providers/test: additional testing via integration tests 2017-01-28 11:09:24 -08:00
provider.go flatmap: mark computed list as a computed value in Expand 2017-02-23 10:03:59 -08:00
provider_test.go core: Fix issues with ignore_changes 2016-03-21 14:20:36 -05:00
resource.go provider/test: Add test of data source count.index 2016-09-03 13:58:30 -07:00
resource_gh12183.go flatmap: mark computed list as a computed value in Expand 2017-02-23 10:03:59 -08:00
resource_gh12183_test.go flatmap: mark computed list as a computed value in Expand 2017-02-23 10:03:59 -08:00
resource_test.go Add a provider test for a list of maps 2016-12-16 10:36:26 -05:00