terraform/command/format
Martin Atkins d24fdce5b8 command/format: Include unknown values in diagnostics
Previously when printing the relevant variables involved in a failed
expression evaluation we would just skip over unknown values entirely.

There are some errors, though, which are _caused by_ a value being
unknown, in which case it's helpful to show which of the inputs to that
expression were known vs. unknown so that the user can limit their further
investigation only to the unknown ones.

While here I also added a special case for sensitive values that overrides
all other display, because we don't know what about a value is sensitive
and so better to give nothing away at the expense of a slightly less
helpful error message.
2020-10-29 09:07:48 -07:00
..
diagnostic.go command/format: Include unknown values in diagnostics 2020-10-29 09:07:48 -07:00
diagnostic_test.go command/format: Include unknown values in diagnostics 2020-10-29 09:07:48 -07:00
diff.go command: Show diffs when only sensitivity changes 2020-10-13 13:55:16 -04:00
diff_test.go command: Show diffs when only sensitivity changes 2020-10-13 13:55:16 -04:00
format.go command/format: a package for formatting plans/state for output 2017-01-26 14:33:49 -08:00
object_id.go command: Reinstate object ids in the UIHook progress logs 2018-10-16 19:14:11 -07:00
object_id_test.go Updates after running `make fmt` with Go v1.11.1 2018-10-17 14:11:08 -07:00
state.go Hide sensitive outputs in terraform show 2020-10-28 15:46:09 -04:00
state_test.go Hide sensitive outputs in terraform show 2020-10-28 15:46:09 -04:00