terraform/command/jsonplan
Alisdair McDiarmid ff32fab41a command/jsonplan: Fix sensitive/unknown crash
When rendering the JSON plan sensitivity output, if the plan contained
unknown collection or structural types, Terraform would crash. We need
to detect unknown values before attempting to iterate them.

Unknown collection or structural values cannot have sensitive contents
accidentally displayed, as those values are not known until after apply.
As a result we return an empty value of the appropriate type for the
sensitivity mapping.
2021-03-31 14:29:15 -04:00
..
doc.go json output of terraform plan (#19687) 2018-12-19 11:08:25 -08:00
module.go command/jsonplan: sort resources by address (#20113) 2019-01-25 09:17:40 -08:00
plan.go command/jsonplan: Fix sensitive/unknown crash 2021-03-31 14:29:15 -04:00
plan_test.go command/jsonplan: Fix sensitive/unknown crash 2021-03-31 14:29:15 -04:00
resource.go command/show: add provider name to resource changes (#20711) 2019-03-15 13:20:43 -07:00
values.go Mildwonkey/command tests (#24535) 2020-04-06 09:24:23 -07:00
values_test.go Mildwonkey/command tests (#24535) 2020-04-06 09:24:23 -07:00